UNPKG

periodicjs

Version:

Periodic is a rapid enterprise application framework for data driven web and mobile applications.

16 lines (14 loc) 281 B
'use strict'; function tempPromise(arg) { return new Promise((resolve, reject) => { try { if (arg === 'throw') throw new Error('Throw an error'); resolve(true); } catch (e) { reject(e); } }); } module.exports = { tempPromise, };