- Callable — Any value that can be invoked with
()
operator - Function — Callable object, with optional
this
binding or arrow - AsyncFunction — Promise-returning
Function
- Callback — A function passed to another function to be called later
- Callback-last-error-first — Callback contract or convention
(error, result)
signature, whereerror
isError | null
, andresult
is returned if no error - Thenable — Any object with a
.then(fn)
method - Promise — Thenable with
then
,catch
, andfinally
- Iterable — Has
[Symbol.iterator]()
that returns anIterator
- AsyncIterable — Has
[Symbol.asyncIterator]()
that returns anAsyncIterator
- Iterator — Has
.next()
returning{ value, done }
structure - Generator — A function producing an
Iterator
(sync or async), supportingnext()
,throw()
,return()
- Array-like — Object with indexed keys
0
,1
, ... and numeric.length
, but no array methods - Observable — Push-based data sours available for subscription
- EventTarget — DOM standard interface with
.addEventListener(event, handler)
- EventEmitter — Node.js style event emitter with
.on(event, handler)
and.emit(event, ...args)
- Stream — Abstraction for flow (readable/writable/duplex) with backpressure support
-
Notifications
You must be signed in to change notification settings - Fork 1
JavaScript Native Contracts
License
HowProgrammingWorks/NativeContracts
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
JavaScript Native Contracts