Tests whether this object has the specified property as a direct property.
Tests whether this object has the specified property as a direct property.
Unlike js.Object.hasProperty, this method does not check down the object's prototype chain.
MDN
Tests whether this object is in the prototype chain of another object.
Tests whether this object is in the prototype chain of another object.
Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.
Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain. If the object does not have the specified property, this method returns false.
MDN
Converts the Thenable into a Scala Future.
Converts the Thenable into a Scala Future.
Unlike when calling the then
methods of Thenable, the resulting
Future is always properly typed, and
operations on it will be well-typed in turn.
A thing on which one can call the
then
method.Thenable
s are automatically transitively flattened by thethen
method ofThenable
s. In particular, this is true for Promises.Attention! The nature of this interface, from the ECMAScript specification, makes it inherently un-typeable, because it is not type parametric.
The signature of the
then
method is only valid provided that the values ofB
do not have athen
method.