MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / baseCreate

Function baseCreate

MathBox/mathbox-bundle.js:35969–35971  ·  view source on GitHub ↗

* The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} prototype The object to inherit from. * @returns {Object} Returns the new object.

(prototype, properties)

Source from the content-addressed store, hash-verified

35967 * @returns {Object} Returns the new object.
35968 */
35969 function baseCreate(prototype, properties) {
35970 return isObject(prototype) ? nativeCreate(prototype) : {};
35971 }
35972 // fallback for browsers without `Object.create`
35973 if (!nativeCreate) {
35974 baseCreate = (function() {

Callers 3

boundFunction · 0.85
createFunction · 0.85
transformFunction · 0.85

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected