Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/node-red/node_modules/oauth2orize/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /**
* `UnorderedList` constructor.
*
* @api public
*/
function UnorderedList(items) {
if (typeof items == 'string') {
items = items.split(' ');
}
this._items = items || [];
this.__defineGetter__('length', this._length);
}
/**
* Check if list is equal to `other` list.
*
* @param {UnorderedList} other
* @return {Boolean}
* @api public
*/
UnorderedList.prototype.equalTo = function(other) {
if (!(other instanceof UnorderedList)) {
other = new UnorderedList(other);
}
if (this.length != other.length) { return false; }
for (var i = 0, len = this._items.length; i < len; i++) {
var item = this._items[i];
if (other._items.indexOf(item) == -1) {
return false;
}
}
return true;
};
/**
* Check if list contains `val`
*
* @param {String} val
* @return {Boolean}
* @api public
*/
UnorderedList.prototype.contains = function(val) {
return this._items.indexOf(val) != -1;
};
/**
* Check if list contains any element in `arr`
*
* @param {Array} arr
* @return {Boolean}
* @api public
*/
UnorderedList.prototype.containsAny = function(arr) {
for (var i = 0, len = arr.length; i < len; i++) {
if (this._items.indexOf(arr[i]) != -1) { return true; }
}
return false;
};
/**
* String representation of list.
*
* @return {String}
* @api private
*/
UnorderedList.prototype.toString = function() {
return this._items.join(' ');
};
/**
* Length of list.
*
* @return {Number}
* @api private
*/
UnorderedList.prototype._length = function() {
return this._items.length;
};
/**
* Expose `UnorderedList`.
*/
module.exports = UnorderedList;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]-- |