Skip to content

Instantly share code, notes, and snippets.

@dtudury
Created August 4, 2013 07:06
Show Gist options
  • Save dtudury/6149503 to your computer and use it in GitHub Desktop.
Save dtudury/6149503 to your computer and use it in GitHub Desktop.
favorite JS idioms
var toBoolean = !!trueFalsy;
var isPresent = ~string.indexOf(substring);
var mSecEpoch = +new Date;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment