UNPKG

svelte-phaser

Version:

Create Phaser 3 games with Svelte 3

13 lines (11 loc) 226 B
/** * Returns true if any of the values are not undefined */ export function shouldApplyProps(...args: any[]) { for (const arg of args) { if (typeof arg !== 'undefined') { return true } } return false }