Bug 1040336 - Uplift Add-on SDK to Firefox r=me

This commit is contained in:
Erik Vold
2014-07-17 13:54:21 -07:00
parent eb808b73f4
commit 63e0f9ab8d
70 changed files with 6705 additions and 274 deletions

View File

@@ -172,6 +172,9 @@ exports.boolean = boolean;
let object = { is: ['object', 'undefined', 'null'] };
exports.object = object;
let array = { is: ['array', 'undefined', 'null'] };
exports.array = array;
let isTruthyType = type => !(type === 'undefined' || type === 'null');
let findTypes = v => { while (!isArray(v) && v.is) v = v.is; return v };