Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
eden-array
Advanced tools
Readme
#Array
DESCRIPTION
npm install eden-array
var array = require('eden-array');
array clone(Array);
Clones an array
array
array().clone();
RESULTS
object combine(Array, Array);
Combines a list of keys and values into an object
array
array
object
array().combine();
RESULTS
this concat(Array[,array..]);
Concats arrays into one
this
array().concat();
RESULTS
bool each(Array, Function);
Custom for each loop that handles scopes and extra arguments
array
function
bool
array().each();
RESULTS
string implode(Array, Mixed, Boolis.has, Array, String);
Returns true if the array has given value
array
mixed
boolis.has - = function(data, value) {Argument Testingis.argument()est(1, 'array')est(1, 'mixed');turn data.indexOf(value) !== -1;*Join array elements with a string
array
string
string
array().implode();
RESULTS
bool isEmpty(Array);
Check if data is array @param array @return bool
bool
array().isEmpty();
RESULTS
array keys(Array);
Returns a list of keys
array
array().keys();
RESULTS
number lastIndexOf(Array, Mixed);
Returns the last index of where in the array the value is found
array
mixed
number
array().lastIndexOf();
RESULTS
array map(Array, Function, [mixed[,mixed..]]);
Custom map loop that handles scopes and extra arguments
array
function
[mixed[,mixed..]]
array
array().map();
RESULTS
object natsort(Object);
Sorts array by natural sort
object
array().natsort();
RESULTS
mixed pop(Array);
Pops array from the stack
mixed
array().pop();
RESULTS
array push(Array, Mixed[,mixed..]);
Pushes array into the stack
array
mixed[,mixed..]
array
array().push();
RESULTS
array reverse(Array);
Reverses the array
array
array().reverse();
RESULTS
array splice(Array, Num, Num, Mixed[,mixed..]);
Picks from chosen slice and rconturns a new array @param array @param num @param [num] @return array is.slice = function(data) { Argument Testing is.argument() est(1, 'array') est(2, 'int') est(3, 'int', 'undefined'); r args = Array.prototype.slice.apply(arguments); gs.shift(); turn data.slice.apply(data, args); * Adds/removes items to/from an array, and returns the removed item(s)
array
num
num
mixed[,mixed..]
array
array().splice();
RESULTS
array sort(Array, [function]);
Sorts an array
array
[function]
array
array().sort();
RESULTS
number size(Array);
Returns the array size
number
array().size();
RESULTS
string toQuery(String, [string]);
Converts array to query string
string
[string]
string
array().toQuery();
RESULTS
string toString();
Converts array to string
string
array().toString();
RESULTS
array unshift(Array, Mixed[,mixed..]);
Unshifts array into the stack
array
mixed[,mixed..]
array
array().unshift();
RESULTS
array values(Array);
Returns a list of values
array
array().values();
RESULTS
FAQs
Eden Node JS Array Methods
The npm package eden-array receives a total of 3 weekly downloads. As such, eden-array popularity was classified as not popular.
We found that eden-array demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.