@talesoft/types
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@talesoft/types

Minimalistic and strict utility functions for JavaScript's primitive types.

Install

// Yarn
yarn add @talesoft/types

// NPM
npm i @talesoft/types

TypeScript typings are included (No @types/ package needed)

Usage

Predicates for simple type checks

import {
  isUndefined,
  isNull,
  isNullOrUndefined,
  isBoolean,
  isString,
  isNumber,
  isInteger,
  isNumeric,
  isArray,
  isObject,
  isFunction,
} from '@talesoft/types'

isUndefined('test') // false
isUndefined(undefined) // true
isUndefined(null) // false

isNull('test') // false
isNull(null) // true
isNull(undefined) // false


// etc...

Readme

Keywords

none

Package Sidebar

Install

npm i @talesoft/types

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

7.14 kB

Total Files

9

Last publish

Collaborators

  • torben-koehn
  • torbenkoehn
  • simonekruegel