Socket
Socket
Sign inDemoInstall

eden-hash

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eden-hash

Eden Node JS Hash Methods


Version published
Weekly downloads
7
decreased by-22.22%
Maintainers
1
Weekly downloads
 
Created
Source

#Hash

DESCRIPTION

Build Status

General

Installation

npm install eden-hash

Usage

var hash = require('eden-hash');

Methods


concat

 object concat(Object[,object..]);

Concats objects into one

Parameters
  1. object[,object..]
Returns

object

Example
Code
hash().concat();
Outputs
RESULTS

each

 bool each(Object, Function);

Custom for each loop that handles scopes and extra arguments

Parameters
  1. object

  2. function

Returns

bool

Example
Code
hash().each();
Outputs
RESULTS

indexOf

 number|false indexOf(Object, Mixed, Boolis.has, Object, Mixed);

Returns true if the array has given value

Parameters
  1. object

  2. mixed

  3. boolis.has - = function(data, value) {Argument Testingis.argument()est(1, 'object')est(2, 'mixed');turn !this.each(data, function(key, test) {turn !(test === value);;*Returns the index of where inthe array the value is found

  4. object

  5. mixed

Returns

number|false

Example
Code
hash().indexOf();
Outputs
RESULTS

implode

 string implode(Object, String);

Join array elements with a string

Parameters
  1. object

  2. string

Returns

string

Example
Code
hash().implode();
Outputs
RESULTS

isEmpty

 bool isEmpty(Object);

Returns true if empty

Parameters
  1. object
Returns

bool

Example
Code
hash().isEmpty();
Outputs
RESULTS

isHash

 bool isHash(Object);

Returns true if given is hash

Parameters
  1. object
Returns

bool

Example
Code
hash().isHash();
Outputs
RESULTS

keys

 array keys(Object);

Returns a list of keys

Parameters
  1. object
Returns

array

Example
Code
hash().keys();
Outputs
RESULTS

ksort

 object ksort(Object);

sorts hash by key

Parameters
  1. object
Returns

object

Example
Code
hash().ksort();
Outputs
RESULTS

krsort

 object krsort(Object);

reverse sorts hash by key

Parameters
  1. object
Returns

object

Example
Code
hash().krsort();
Outputs
RESULTS

map

 object map(Object, Function, [mixed[,mixed..]]);

Custom map loop that handles scopes and extra arguments

Parameters
  1. object

  2. function

  3. [mixed[,mixed..]]

Returns

object

Example
Code
hash().map();
Outputs
RESULTS

natksort

 object natksort(Object);

Rearranges objects where keys are natural sorted

Parameters
  1. object
Returns

object

Example
Code
hash().natksort();
Outputs
RESULTS

natsort

 object natsort(Object);

Sorts array by natural sort

Parameters
  1. object
Returns

object

Example
Code
hash().natsort();
Outputs
RESULTS

reverse

 object reverse(Object);

Reverse sorts a hash with respect to its keys

Parameters
  1. object
Returns

object

Example
Code
hash().reverse();
Outputs
RESULTS

size

 number size(Object);

Returns the size of the object

Parameters
  1. object
Returns

number

Example
Code
hash().size();
Outputs
RESULTS

sort

 object sort(Object, [callback]);

Sorts a hash with respect to its keys

Parameters
  1. object

  2. [callback]

Returns

object

Example
Code
hash().sort();
Outputs
RESULTS

toQuery

 string toQuery(Object);

Converts array to query string

Parameters
  1. object
Returns

string

Example
Code
hash().toQuery();
Outputs
RESULTS

toString

 string toString(Object);

Converts array to string

Parameters
  1. object
Returns

string

Example
Code
hash().toString();
Outputs
RESULTS

values

 array values(Object);

Returns a list of values

Parameters
  1. object
Returns

array

Example
Code
hash().values();
Outputs
RESULTS

Keywords

FAQs

Package last updated on 28 Nov 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc