objcast
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published
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[]>

Readme

Keywords

Package Sidebar

Install

npm i objcast

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

2.92 kB

Total Files

6

Last publish

Collaborators

  • jpafly