1.0.5 • Published 3 years ago

@rothzerg/utils v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@rothzerg/utils

npm (scoped) npm bundle size (minified)

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
1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago