MCPcopy
hub / github.com/plotly/plotly.js / isPromise

Function isPromise

test/jasmine/tests/toimage_test.js:60–62  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

58
59 it('should return a promise', function (done) {
60 function isPromise(x) {
61 return !!x.then && typeof x.then === 'function';
62 }
63
64 var returnValue = Plotly.newPlot(gd, subplotMock.data, subplotMock.layout).then(Plotly.toImage);
65

Callers 1

toimage_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…