Bug 1040336 - Uplift Add-on SDK to Firefox r=me
This commit is contained in:
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user