MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / create

Function create

MathBox/mathbox-bundle.js:36967–36970  ·  view source on GitHub ↗

* Creates an object that inherits from the given `prototype` object. If a * `properties` object is provided its own enumerable properties are assigned * to the created object. * * @static * @memberOf _ * @category Objects * @param {Object} prototype The object to i

(prototype, properties)

Source from the content-addressed store, hash-verified

36965 * // => true
36966 */
36967 function create(prototype, properties) {
36968 var result = baseCreate(prototype);
36969 return properties ? assign(result, properties) : result;
36970 }
36971
36972 /**
36973 * Assigns own enumerable properties of source object(s) to the destination

Callers

nothing calls this directly

Calls 2

baseCreateFunction · 0.85
assignFunction · 0.85

Tested by

no test coverage detected