Easy to import and use. (gist-it)
-
fromDateToTimestamp("2012/12/31")
1356933600
-
fromTimestampToDate("1356933600")
2012/12/31
-
daysInMonth("2013,2")
28
-
asc2str(65)
A
-
urlDecode("type%3Dvideo")
type=video
-
patchZero(99, 4)
0099
-
hybridRand(7,"u","+$")
u72fbanu+$
-
isInArray(2, [1,2,5])
true
-
getUnique([1,1,3,3,5,6,6,6])
[1, 3, 5, 6]
-
getDuplicate([1,1,3,3,5,6,6,6,7])
[1, 3, 6]
-
arr2lse(['dog','cat'], ['meat','fish']);
localStorage: [key] [value] dog meat cat fish
-
[3, 1, 2, 4].sort(desc)
[4, 3, 2, 1]
-
[3, 1, 2, 4].sort(asc)
[1, 2, 3, 4]