Licence
GPL-3.0-or-later
Version
1.2.1
Deps
0
Size
71 kB
Vulns
0
Weekly
0
Revolutionary Games Common Library
A library of methods that we tend to use in all (or at least most) of our projects.
Getting Started
To install the Revolutionary Games Common Library in your project, run:
npm install @revolutionarygamesco/common --save
You can then add methods from the library and call them like this:
import { isString } from '@revolutionarygamesco/common'
const x = 'Hello, world!'
if (isString(x)) console.log(x)
Methods
Type guards
- isNumber
- isNumberArray
- isString
- isStringArray
- isObject
- makeArrayGuard
- makeStringUnionGuard
- makeTupleGuard