@rothzerg/utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @rothzerg/utils

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

14.9 kB

Total Files

23

Last publish

Collaborators

  • rothzerg