UNPKG

rubico

Version:

[a]synchronous functional programming

8 lines (7 loc) 419 B
/** * rubico v2.6.2 * https://github.com/a-synchronous/rubico * (c) 2019-2024 Richard Tong * rubico may be freely distributed under the MIT license. */ const objectKeysLength=t=>{let e=0;for(const n in t)e+=1;return e},isEmpty=t=>"string"==typeof t?0==t.length:null==t||("number"==typeof t.length?0==t.length:"number"==typeof t.size?0==t.size:t.constructor==Object&&0==objectKeysLength(t));export default isEmpty;