Skip to content

Instantly share code, notes, and snippets.

@AutoSponge
Created December 4, 2017 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AutoSponge/6ff3005183e375be799dc2352b518a04 to your computer and use it in GitHub Desktop.
Save AutoSponge/6ff3005183e375be799dc2352b518a04 to your computer and use it in GitHub Desktop.
one-liners
// map with native fn
[' a', 'b ', 'c'].map(Function.prototype.call, String.prototype.trim)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment