orbx-core

Module that provides basic functionality to create `orbx` childs and clean copies
Source:

Methods

(inner) exec() → {Void}

Source:
function execute function binded to orb while creating new orb
Returns:
Type
Void

(inner) orb(input, record) → {Void}

Source:
Create new child that add current object to prototype chain + newly passed object.
- New object maight be any JS object (function, array, object, string, number).
- Function input is binded to `exec` method.
- Name property is assigned to `name` of new object.
- New object is set as child to its proto. To prevent that pass second argument = false.
Example
const test = core.spawn();
function Component1(){console.log(this.vluae)}
Component1.value = 1;
const orb1 = test.orb(Component1);
orb1.run() // 1;
Parameters:
Name Type Description
input function | Array | Object | String | Number
record Boolean flag if input should be add to prototype child or not
Returns:
Type
Void

(inner) spawn()

Source:
Create clean version of orbx object
Example
const test = core.spawn();