Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

goodies

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goodies

Native object extension goodies.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 27 Feb 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc