Legitcode / rubyfill

An (opinionated) collection of Ruby'ish polyfills for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add .blank

zackify opened this issue · comments

Object.keys(object).length for objects, you could figure the rest out ;) @rampage1213 i would definitely use this. Example:

let object = {name: 'z'}
object.blank -> false
let object = {}
object.blank -> true

closed via #10