epdoc-util
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

epdoc-util

Typescript utilities, mostly for type checking, with type-guards.

import { isBoolean } from 'epdoc-util';

if (isBoolean(value)) {
  doTask();
}
import { object as test } from 'epdoc-util';

let obj = { a: { b: 3 } };
test(obj)
  .property('a.b')
  .value(); // returns 3

u.path('a.c').setValue({}, 4); // results in { a: { c: 4 }}

test(obj)
  .property('a.b')
  .isInteger(); // returns true

Build

npm run clean
npm run build
npm run test

Publish

npm publish

Readme

Keywords

Package Sidebar

Install

npm i epdoc-util

Weekly Downloads

13

Version

0.5.1

License

MIT

Unpacked Size

76.7 kB

Total Files

15

Last publish

Collaborators

  • jpravetz