tool-belt
Soon to be born js utility library. This library will be undergoing major changes soon.
Requires jquery for client functions.
For now
$ npm install tool-belt
let toolBelt = ; toolBelt; // He...
Available functions as of right now
app
get
register a get based express functionpost
register a post based express function
hash
java like hash of a stringprint
prints and returnstrunc
truncates strings with elipsesextend
extends an objectconstructor
Correctly set an object's constructoronce
return a function that can only run onceserver
return a function that can only run on nodeclient
return a function that can only be run on the the clientdataEqual
compare two data setsdataCopy
copy a data setintersects
check if two arrays intersectunique
removes all duplicates and returns a new arrayflatten
flattens an arrayuntilStable
runs a function until it no longer calls the given callbacknop
no operation,redirect
client redirect with delay