Module: utils/create_object

utils/create_object

Creates a new object with the [[Proto]] set to a passed in object.
Source:

Methods

(static) createObject(parent) → {object}

Basic Crockford-ian style Object.create. Intentionally named to distinguish from the native implementation.
Parameters:
Name Type Description
parent Object An object to specify as the return prototype.
Source:
Returns:
An object with parent object as the prototype.
Type
object