aswi2020vldc-gitlab/templetes/node_modules/url/util.js @ 2aa583fe
1 | 3a515b92 | cagy | 'use strict'; |
---|---|---|---|
2 | |||
3 | module.exports = { |
||
4 | isString: function(arg) { |
||
5 | return typeof(arg) === 'string'; |
||
6 | },
|
||
7 | isObject: function(arg) { |
||
8 | return typeof(arg) === 'object' && arg !== null; |
||
9 | },
|
||
10 | isNull: function(arg) { |
||
11 | return arg === null; |
||
12 | },
|
||
13 | isNullOrUndefined: function(arg) { |
||
14 | return arg == null; |
||
15 | }
|
||
16 | };
|