What is the difference between Object and object in angular typescript
I get a tslint error:
Don't use 'Object' as a type. Avoid using the
Objecttype. Did you meanobject?
https://mariusschulz.com/blog/typescript-2-2-the-object-type
object represents any non-primitive type. The following types are considered to be primitive types in JavaScript:
string,
boolean,
number,
bigint,
symbol,
null,
undefined.
While
object(lowercased) represents all non-primitive types,Object(uppercased) describes functionality that is common to all JavaScript objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With