node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป


General Pasta

A collection of general functions that I have found myself copy pastaing around.

I am trying to separate the pasta into useful strands.


Takes any number of args and logs them if it can.

slice(obj[, start, end])

Take an array like object and return a real array. Optional start/end.

combine(obj1, obj2)

Add everything from obj2 into obj1 and return obj1.


Attempt to return the last element from item, whatever item might be.


Attempt to return the first element from item, whatever item might be.


Steamrolls nested arrays into a string.