daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Oct 21st, 2018 63 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. _.mixin(
  2.   isBlank: (obj) ->
  3.     if _.isString(obj)
  4.       !obj.match(/\S/)?
  5.     else if _.isBoolean(obj)
  6.       if obj then false else true
  7.     else if _.isNumber(obj)
  8.       false
  9.     else
  10.       # fall through to `isEmpty` which will
  11.       # handle objects, arrays, null & undefined
  12.       _.isEmpty(obj)
  13. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top