GRAYBYTE WORDPRESS FILE MANAGER9336

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib/node_modules/npm/node_modules/es-to-primitive/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib/node_modules/npm/node_modules/es-to-primitive//es5.js
'use strict';

var toStr = Object.prototype.toString;

var isPrimitive = require('./helpers/isPrimitive');

var isCallable = require('is-callable');

// http://ecma-international.org/ecma-262/5.1/#sec-8.12.8
var ES5internalSlots = {
	'[[DefaultValue]]': function (O) {
		var actualHint;
		if (arguments.length > 1) {
			actualHint = arguments[1];
		} else {
			actualHint = toStr.call(O) === '[object Date]' ? String : Number;
		}

		if (actualHint === String || actualHint === Number) {
			var methods = actualHint === String ? ['toString', 'valueOf'] : ['valueOf', 'toString'];
			var value, i;
			for (i = 0; i < methods.length; ++i) {
				if (isCallable(O[methods[i]])) {
					value = O[methods[i]]();
					if (isPrimitive(value)) {
						return value;
					}
				}
			}
			throw new TypeError('No default value');
		}
		throw new TypeError('invalid [[DefaultValue]] hint supplied');
	}
};

// http://ecma-international.org/ecma-262/5.1/#sec-9.1
module.exports = function ToPrimitive(input) {
	if (isPrimitive(input)) {
		return input;
	}
	if (arguments.length > 1) {
		return ES5internalSlots['[[DefaultValue]]'](input, arguments[1]);
	}
	return ES5internalSlots['[[DefaultValue]]'](input);
};

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:36:29
root / root
0755
helpers
--
March 03 2024 22:36:29
root / root
0755
.editorconfig
0.279 KB
March 10 2021 14:36:37
root / root
0644
.jscs.json
4.033 KB
March 10 2021 14:36:37
root / root
0644
.travis.yml
7.033 KB
March 10 2021 14:36:37
root / root
0644
CHANGELOG.md
1.628 KB
March 10 2021 14:36:37
root / root
0644
LICENSE
1.057 KB
March 10 2021 14:36:37
root / root
0644
Makefile
3.744 KB
March 10 2021 14:36:37
root / root
0644
README.md
2.074 KB
March 10 2021 14:36:37
root / root
0644
es2015.js
2.089 KB
March 10 2021 14:36:37
root / root
0644
es5.js
1.171 KB
March 10 2021 14:36:37
root / root
0644
es6.js
0.052 KB
March 10 2021 14:36:37
root / root
0644
index.js
0.443 KB
March 10 2021 14:36:37
root / root
0644
package.json
1.969 KB
March 10 2021 14:36:37
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF