push method

JSPromise<Reference> push([
  1. JSAny? value,
  2. JSFunction onComplete
])

Generates a new child location using a unique key and returns its Reference.

Implementation

// TODO: Properly handle ThenableReference
external JSPromise<Reference> push([
  JSAny? value,
  // (a: Error | null) => any
  JSFunction onComplete,
]);