CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_initCloneObject.js19 linesDownload Raw Back to lodash
1var baseCreate = require('./_baseCreate'),2    getPrototype = require('./_getPrototype'),3    isPrototype = require('./_isPrototype');4 5/**6 * Initializes an object clone.7 *8 * @private9 * @param {Object} object The object to clone.10 * @returns {Object} Returns the initialized clone.11 */12function initCloneObject(object) {13  return (typeof object.constructor == 'function' && !isPrototype(object))14    ? baseCreate(getPrototype(object))15    : {};16}17 18module.exports = initCloneObject;19 
basant307/AI_Governance_Project · CoolFace