1.0.5 • Published 2 years ago

@rothzerg/utils v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago