jonschlinkert / shallow-clone
Make a shallow clone of an object, array or primitive.
☆29Updated 4 years ago
Related projects ⓘ
Alternatives and complementary repositories for shallow-clone
- Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notati…☆24Updated 2 years ago
- Extend the properties from any number of objects onto the first object. Pass an empty object as the first arg to create a new object.☆14Updated 6 years ago
- Define a non-enumerable property on an object.☆21Updated last year
- Modern Buffer API polyfill without footguns☆26Updated 3 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Copy static properties, prototype properties, and descriptors from one object to another☆15Updated 3 years ago
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Ex…☆23Updated 7 years ago
- Returns true if a value exists, false if empty. Works with deeply nested values using object paths.☆26Updated 6 years ago
- A cache for managing namespaced sub-caches☆14Updated 3 years ago
- Track the list of currently unhandled promise rejections☆24Updated 5 years ago
- Tests whether one path is inside another path☆41Updated 4 years ago
- One promise for multiple requests in flight to avoid async duplication☆16Updated 4 years ago
- Find the closest babel config based on a directory☆13Updated 2 months ago
- List of node.js builtin modules☆38Updated 7 months ago
- Turn an array like into an array☆11Updated 3 years ago
- Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `packag…☆40Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 5 years ago
- Get the auth token set for an npm registry☆35Updated 5 months ago
- Like `extend` but only copies missing properties/values to the target object.☆17Updated 7 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- A list of directories you should ignore by default☆23Updated 2 years ago
- Give me a string and I'll tell you if it's a valid npm package license string☆24Updated 3 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆54Updated 3 months ago
- Center-align the text in a string.☆22Updated 7 years ago
- Answers the question: "can this value have keys?". Returns true if a value is any of the object types: array, regexp, plain object, funct…☆19Updated 3 years ago
- Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.☆15Updated last year
- Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in olde…☆21Updated 3 months ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 4 months ago