Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/laravel-mix/src/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /**
* Generic tap function.
* @deprecated
**/
Object.defineProperty(global, 'tap', {
/**
* @template T
* @param {T} val
* @param {(val: T) => void} callback
* @returns {T}
*/
value(val, callback) {
callback(val);
return val;
}
});
/**
* Add tap to arrays.
* @deprecated
**/
if (!Object.prototype.hasOwnProperty.call(Array, 'tap')) {
Object.defineProperty(Array.prototype, 'tap', {
/**
* @param {(arr: self) => void} callback
* @returns {self}
*/
value(callback) {
if (this.length) {
callback(this);
}
return this;
}
});
}
/**
* Add wrap to arrays.
* @deprecated
**/
if (!Object.prototype.hasOwnProperty.call(Array, 'wrap')) {
Object.defineProperty(Array, 'wrap', {
/**
* @template T
* @param {T|T[]} value
* @returns {T[]}
*/
value(value) {
if (Array.isArray(value)) {
return value;
}
return [value];
}
});
}
/**
* Flatten an array.
* @deprecated
**/
Object.defineProperty(global, 'flatten', {
/**
* @template T
* @param {T[]} arr
* @returns {T[]}
*/
value(arr) {
// @ts-ignore
return [].concat.apply([], Object.values(arr));
}
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]-- |