Files
30-seconds-of-code/test/isEmpty/isEmpty.js

2 lines
97 B
JavaScript

const isEmpty = val => val == null || !(Object.keys(val) || val).length;
module.exports = isEmpty