@rothzerg/utils
v1.0.5
Published
[![npm (scoped)](https://img.shields.io/npm/v/@rothzerg/utils.svg)](https://www.npmjs.com/package/@rothzerg/utils) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@rothzerg/utils.svg)](https://www.npmjs.com/package/@rothzerg/utils)
Downloads
3
Readme
@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