Creates a new object with the given prototype, optionally attaching props as own properties — basically Object.create, without the property-descriptor ceremony (official Underscore docs). Stable Object helper — not deprecated.
Pass the required arguments shown below. Underscore object helpers usually return a new value — check whether the source object is mutated.
Syntax
Call _.create. Start with this line.
Underscore
_.create(prototype, props)
Call
What it does
_.create(prototype, props)
Primary signature.
_.create(...)
Call with the arguments your case needs.
Load Underscore with import _ from "underscore" (or the UMD CDN build) so these helpers are available as _.
Library declarations
Underscore
_.create(prototype, props)
Parameters
Parameter
Description
prototype
Required. Object to inherit from (null allowed)
props
Optional. Plain object of own properties to attach
Return Value
Return Value
Description
*
New object linked to prototype
Underscore.js Examples
Example 1 — Prototype Methods + Own Data
Share a method on the prototype; keep per-object data in props.
Underscore
var Animal = {
speak: function () { return this.name + " speaks"; }
};
var dog = _.create(Animal, { name: "Rex" });
dog.name; // → "Rex"
dog.speak(); // → "Rex speaks"
allKeys / has. Show the full chain vs own-only checks.
Compatibility
Browser & Runtime Support
_.create ships with Underscore.js (1.x) and builds on native Object.create. It runs anywhere Underscore runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.x
_.create()
Available in [email protected] (UMD / ESM). Works in evergreen browsers and current Node LTS when Underscore is loaded.
100%With Underscore 1.x
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.createUnderscore 1.x+
Bottom line: Safe for production once Underscore is on the page or in your bundle. Not a native browser API by itself — load Underscore first. Prefer a pinned CDN version (e.g. [email protected]).
Frequently Asked Questions
_.create(prototype, props) returns a new object whose [[Prototype]] is prototype, then copies own properties from props onto it. Official idea: Object.create without property-descriptor ceremony.
Same core job. _.create accepts a plain props object of values. Native Object.create’s second argument is a property descriptors map.
Yes. _.create(null, props) makes a bare object with no inherited Object.prototype methods.
No. Own enumerable properties are copied by reference (shallow).
Yes. Methods on the prototype are shared through the prototype chain — not copied onto each instance.
When you want prototypal inheritance for a few objects without writing a constructor or class.