uon.core
v0.2.0
Published
UON Framework Core
Downloads
33
Readme
UON.CORE
uon.core is the base for the UON framework. It contains common utility functions and classes to be used for both Node.js and Browser environements. This library was built to speed up developement time and reduce boilerplate code.
Usage
npm install uon.core
const uon = require('uon.core');
Array functions
uon.array.include
Appends a value to an array if it is not already contained in the array
var my_array = [1, 2, 3];
uon.array.include(my_array, 2);
// my_array unchanged
uon.array.include(my_array, 4);
// my_array : [1, 2, 3, 4]
Object functions
Function functions
String functions
uon.EventSource
A promise-based, sequential event emitter.
uon.Observer
A key path observer
uon.UUID
A universally unique identifier generator
TODOs
- Complete this README
- Write tests