UNPKG

yahoo-fantasy

Version:

An API to help facilitate the use of the Yahoo! Fantasy Sports API in NodeJS projects.

7 lines (6 loc) 144 B
export function isEmpty(obj) { return ( [Object, Array].includes((obj || {}).constructor) && !Object.entries(obj || {}).length ); }