Releases: flexdinesh/typy
Releases · flexdinesh/typy
2.0.1
2.0.0
- Package minified with >60% compression
- New getters added
safeNumber
returns the value if input is Number or returns 0safeBoolean
returns the value if input is Boolean or returns falsesafeFunction
returns the function if input is function or returns an empty function () => {}
1.4.3
- Added support for use in TypeScript codebases
1.4.1
Typy can now handle array elements in object path
v1.4.0
Two new getters are available in Typy
safeObject
returns the value from a nested object path without throwingsafeString
returns the value if input is string or returns empty string
v1.3.0
Optimized the code to use getters and setters. Typy will now check only for the requested type.
v1.2.0
Bump up version for new instance fix