Use Typescript In Javascript Object Length Undefined Vs Indeterminate