ou

object-util

A very small set of utilities for use with JavaScript objects. Includes yet another version of extend() because sometimes an extend() is all you want.

Showing:

Popularity

Downloads/wk

5

GitHub Stars

0

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

A very small set of utilities for use with JavaScript objects. Includes yet another version of extend() because sometimes an extend() is all you want.

API Documentation

extend(that, varargs)

Just JQuery's/underscore's extend(). Mixes the properties of all of the arguments after the first parameter into the first parameters. Takes an arbitrary number of objects as parameters.

augment(that, props)

Copies properties from the second object to the first object (that) iff the property does not exist in the first or is null.

override(that, props)

Copies properties from the second object to the first iff the property exists in the first.

isObject(that, pure)

Returns true/false for whether the specified value is an Object, and works for Objects created in other frames as well. If the "pure" flag is "true" then isObject() should return true only if the value belongs exclusively to the Object type, not to any sub-type.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial