@stdlib/object
v0.4.1
Published
Object.
Readme
Object
Object namespace.
Installation
npm install @stdlib/objectUsage
var ns = require( '@stdlib/object' );ns
Object namespace.
var o = ns;
// returns {...}The namespace contains the following:
anyInBy( object, predicate[, thisArg ] ): test whether at least one property in an object passes a test implemented by a predicate function.anyOwnBy( object, predicate[, thisArg ] ): test whether at least one own property of a provided object passes a test implemented by a predicate function.assignIn( target, source1[, source2[,...,sourceN]] ): copy enumerable own and inherited properties from one or more source objects to a target object.assign( target, source1[, source2[,...,sourceN]] ): copy enumerable own properties from one or more source objects to a target object.bifurcateIn( obj, [options,] predicate ): split an object's own and inherited property values into two groups according to a predicate function.bifurcateOwn( obj, [options,] predicate ): split an object's own property values into two groups according to a predicate function.capitalizeKeys( obj ): convert the first letter of each object key to uppercase.commonKeysIn( obj1, obj2[, obj3[,...,objN]] ): return the common own and inherited property names of two or more objects.commonKeys( obj1, obj2[, obj3[,...,objN]] ): return the common own property names of two or more objects.Object( value ): object constructor.deepGet( obj, path[, options] ): get a nested property value.deepSet( obj, path, value[, options] ): set a nested property value.everyInBy( object, predicate[, thisArg ] ): test whether all properties (own and inherited) of an object pass a test implemented by a predicate function.everyOwnBy( object, predicate[, thisArg ] ): test whether all own propertes of an object pass a test implemented by a predicate function.forIn( obj, fcn[, thisArg ] ): invoke a function for each own and inherited enumerable property of an object.forOwn( obj, fcn[, thisArg ] ): invoke a function for each own enumerable property of an object.inverseBy( obj, [options,] transform ): invert an object, such that keys become values and values become keys, according to a transform function.inverse( obj[, options] ): invert an object, such that keys become values and values become keys.lowercaseKeys( obj ): convert each object key to lowercase.moveProperty( source, prop, target ): move a property from one object to another object.noneInBy( object, predicate[, thisArg ] ): test whether every property of an object fails a test implemented by a predicate function.noneOwnBy( object, predicate[, thisArg ] ): tests whether every own property of an object fails a test implemented by a predicate function.someInBy( obj, n, predicate[, thisArg ] ): test whether an object contains at leastnproperties which pass a test implemented by a predicate function.someOwnBy( obj, n, predicate[, thisArg ] ): test whether an object contains at leastnown properties which pass a test implemented by a predicate function.uncapitalizeKeys( obj ): convert the first letter of each object key to lowercase.uppercaseKeys( obj ): convert each object key to uppercase.
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/object' );
console.log( objectKeys( ns ) );Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
