1.0.5 • Published 2 years ago
@rothzerg/utils v1.0.5
@rothzerg/utils
Install
$ npm install @rothzerg/utils
Utils
asBoolean(value:string)
import { asBoolean } from '@rothzerg/utils'
asBoolean('1');
=> true
asBoolean(1);
=> true
asBoolean('true');
=> true
asBoolean('1234');
=> false
asBoolean('false');
=> false
asBoolean('0');
=> false
asBoolean(0);
=> false
startsWith(string:string, value:string)
import { asBoolean } from '@rothzerg/utils'
startsWith('emre rothzerg', 'emre');
=> true
startsWith('emre rothzerg', 'rotherg');
=> false