Any type
Last updated
Last updated
The any
type allows you to opt-out of type-checking during compilation.
The any
type is handy if you know some part of the type, but perhaps not all of it. For example, you may have an array but the array has a mix of different types:
Note: using any
should be avoided when possible. By opting out of type-checking we lose out on the advantages of having a static type system, .