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[]>
objcast
0.0.4 • Public • PublishedDependents (0)
Package Sidebar
Install
npm i objcast
Weekly Downloads
0
Version
0.0.4
License
ISC
Unpacked Size
2.92 kB
Total Files
6