Module

x/lodash_es/src/object.js>create

lodash for deno use
Latest
function create
import { create } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/object.js";

Creates an object that inherits from the prototype object. If a properties object is given, its own enumerable string keyed properties are assigned to the created object.

Examples

function Shape() { this.x = 0; this.y = 0; }

function Circle() { Shape.call(this); }

Circle.prototype = _.create(Shape.prototype, { 'constructor': Circle });

var circle = new Circle; circle instanceof Circle; // => true

circle instanceof Shape; // => true

Parameters

prototype

The object to inherit from.

properties