jsink
v0.4.3
Published
A library with useful Javascript extensions.
Downloads
14
Readme
jsink
A library with useful Javascript extensions.
Note: this library is not ready to depend on.
Installation
Use with npm:
npm install jsink --save
Reference
Objects
deepMerge(a: Any, b: Any)
deeply merges a and b.
Date
areSameDate(a: Date, b: Date)
Returns true if a
and b
represents the same date (same day of same month of same year).
isDate(a: Any)
Returns true if a
is a Javascript Date object.
monthName(date: Date, [locale: String])
Returns a String
that represents the month name with the given locale.
Default locale is english. Locale supported values are "en"
, "it"
.
utils
uuid()
Generates a uuid.