Skip to content

Instantly share code, notes, and snippets.

@maestrow
Last active August 29, 2015 14:00
Show Gist options
  • Save maestrow/b2ccf6264f2812e642d2 to your computer and use it in GitHub Desktop.
Save maestrow/b2ccf6264f2812e642d2 to your computer and use it in GitHub Desktop.
Generic helper methods and techniques that can be useful in every project.
isArray = (x) ->
typeof x is 'object' and x.constructor is Array
Array::last = -> @[@length - 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment