fln utilities is a JS/TS library for simple life in your code :)
Use the package manager npm to install fln.
npm install fln-utilities
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.