Skip to main content
Module

x/rambda/length.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function length(x){ if (!x && x !== '' || x.length === undefined){ return NaN }
return x.length}