fln-utilities
Version:
fln utilities is a JS/TS library for simple life in your code :)
42 lines (27 loc) • 830 B
Markdown
fln utilities is a JS/TS library for simple life in your code :)
Use the package manager [npm](https://docs.npmjs.com/downloading-and-installing-packages-locally) to install fln.
```bash
npm install fln-utilities
```
```typescript
import {defineType} from "fln-utilities";
defineType('word');
// returns 'string'
defineType([0,3,5]);
// returns 'array'
defineType({'foo' : 'bar'});
// returns 'object'
class fln {};
defineType(new fln());
// returns 'class'
```
Other examples are in the index files in the repository.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
[](https://choosealicense.com/licenses/isc/)