Sign in
chromium
/
devtools
/
devtools-frontend
/
refs/heads/main
/
.
/
node_modules
/
rambda
/
src
/
length.js
blob: 82b7f31ade8292cfc19c0aaa3e565ff622cfa143 [
file
] [
log
] [
blame
] [
edit
]
import
{
isArray
}
from
'./_internals/isArray.js'
export
function
length
(
x
){
if
(
isArray
(
x
))
return
x
.
length
if
(
typeof
x
===
'string'
)
return
x
.
length
return
NaN
}