i want to get the length of a string?
comment.default.length
default is a JS keyword
+ everything is treated as an object in JS(except null & undefined)
and primitive types. Also typed null === 'object'
let w = {sid:[{a:12, c:"abcdef"}]}; how did you get the length c ? w.sid[0].c.length or w.sid[0].c.default.length ??
Обсуждают сегодня