Skip to content

Module: util::make

Jovan Gerodetti edited this page Apr 14, 2021 · 4 revisions

Make(object, prototype) => {Function}

exported: Make
kind: function
declaration: const

Creates a new object with the given prototype. If two arguments are passed in, the properties of the first object will be applied to the new object.

Name Type Description
object object
prototype object

hasPrototype(object, prototype) => {boolean}

exported: hasPrototype
kind: function
declaration: const

This method checks if the given prototype is in the prototype chain of the given target object.

Name Type Description
object object
prototype object

Clone this wiki locally