0.1.2 • Published 12 years ago

goodies v0.1.2

Weekly downloads
21
License
-
Repository
github
Last release
12 years ago

Goodies

The goodies package adds to the prototype of javascripts native objects. It adds a few methods that are very handy to have, and not implemented in node.

Added methods

Object.merge(object)

Returns a new object that is created from the calling object, and the object passed in. If both objects have the same property, the property from the object being passed wins, unless both properties are type object, in which case that object is recursively merged.

Array.unique()

This method only works on sorted arrays. It removes duplicate properties on the array. Works in place.

Date.unixTime()

Returns the unix time of the date (seconds since Jan 1, 1970).

Date.fromUnixTime(time)

Sets the date based on the unix time passed in.

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago