ObjectUtil.js revision 2d7019e19039fd083850f76e54b6b26a7b06a8f2
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * Copyright © 2011 ForgeRock AS. All rights reserved.
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * The contents of this file are subject to the terms
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * of the Common Development and Distribution License
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * (the License). You may not use this file except in
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * compliance with the License.
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * You can obtain a copy of the License at
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * See the License for the specific language governing
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * permission and limitations under the License.
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * When distributing Covered Code, include this CDDL
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * Header Notice in each file and include the License file
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * at http://forgerock.org/license/CDDLv1.0.html
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * If applicable, add the following below the CDDL Header,
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * with the fields enclosed by brackets [] replaced by
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * your own identifying information:
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * "Portions Copyrighted [year] [name of copyright owner]"
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek/*global define*/
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek function () {
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek return null;
result = new Date();
return result;
result = [];
return result;
result = {};
for (oneAttribute in o) {
return result;
if (!(original.hasOwnProperty(oneAttribute) && original[oneAttribute] instanceof Array && patch[oneAttribute] instanceof Array)) {
return result;
return obj;