objcast
v0.0.4
Published
Object caster.
Downloads
2
Readme
import { Caster } from 'objcast';
const caster = new Caster(), // any[]
cast = () => 'abc';
caster.push(cast);
caster.cast((c: Function) => c()).then(r => {
console.log(r); // ['abc']
caster.remove(cast); // -1 = false, >= 0 = true
}); // Promise<any[]>