MCPcopy
hub / github.com/bberak/react-native-game-engine / isPromise

Function isPromise

src/GameEngine.js:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 props.entities;
14
15const isPromise = obj => {
16 return !!(
17 obj &&
18 obj.then &&
19 obj.then.constructor &&
20 obj.then.call &&
21 obj.then.apply
22 );
23};
24
25export default class GameEngine extends Component {
26 constructor(props) {

Callers 2

componentDidMountMethod · 0.85
GameEngineClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected