Project Awesome project awesome

JavaScript > Micro npm Packages

Collection 4.6k stars GitHub

Modules

Object

map-obj 217 updated 6mo ago

Map object keys and values into a new object.

filter-obj 105 updated 1y ago

Filter object keys and values into a new object.

object-values 27 (archived)

Get the values of an object.

object-pairs 2 updated 10y ago

Turn an object into list of [key, value] pairs for mapping, iterating or other purposes.

zipmap 4 updated 2y ago

Returns a map with the keys mapped to the corresponding vals. zipmap also accepts a single value of objects or pairs.

just-pluck 11 updated 10y ago

Pluck without the madness.

deep-equal 794 updated 9d ago

Node's assert.deepEqual() algorithm as a standalone module.

deep-assign 246 (archived)

Recursive Object.assign().

set-value 277 updated 3y ago

Create nested values and any intermediaries dot notation ('.') paths.

get-value 294 updated 1y ago

Use property paths (a.b.c) to get a nested value from an object.

has-value 26 updated 8y ago

Returns true if a value exists, false if empty. Works with deeply nested values using dot notation ('.') paths.

has-key-deep 1 updated 6y ago

Deep-search objects for keys. Keys can be searched by providing an array of keys, or using a dot-notiation.

flatkeys 3 updated 12y ago

Flatten object key hierarchies into a list of strings using a custom separator.

flatten-obj 21 updated 8y ago

Converts an object literal with deeply nested nodes to a simple key/value object.

is-empty-object 11 updated 7y ago

Check if an object is empty.

stringify-object 322 updated 6mo ago

Stringify an object/array like JSON.stringify just without all the double-quotes.

sorted-object 35 updated 5y ago

Returns a copy of an object with its keys sorted.

static-props

Defines static object attributes using Object.defineProperties

missing-deep-keys updated 6y ago

Returns an array of keys from first object that are missing in second.

has-own-property 3 updated 4y ago

Check if an object has a local property.

merge-objects 2 updated 10y ago

Deep-merge two objects. Arrays that are values of the same object key get concatenated.

deep-object-diff 1.1k updated 2y ago

Deep diff two JavaScript Objects while preserving the data structure. Including nested structures of Arrays and Objects.