0.1.5 • Published 5 years ago

global-machine v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

state-machine

usage

import { machine, utils } from '@leofcoin/state-machine';

machine.set('hello', 'world')
machine.get('hello'); // world
machine.remove('hello');


const globalArr = utils.array('hello', ['world']);
globalArr.set(1, 'world2');
globalArr.get(0); // world
globalArr.get(1); // world2
globalArr.remove(0); ['world2']
globalArr.remove('world2'); []

const globalObject = utils.array('hello', {'world': true});
globalObject.get('world'); // true
globalObject.set('world', false);
globalObject.get(0); // false
globalObject.remove('world'); {}
0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago