packmule
Universal mail tracking for node.
Last updated 7 years ago by pfacheris .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install packmule 
SYNC missed versions from official npm registry.

packmule

Build Status Coverage Status

ʕ·ᴥ·ʔ says: "Hey there!"

Installation

$ npm i packmule --save

Methods

filter

Ƹ̵̡Ӝ̵̨̄Ʒ

Filter an array.

import { ʕ·ᴥ·ʔ } from 'packmule';

const ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).Ƹ̵̡Ӝ̵̨̄Ʒ((value, index) => (
  value % 2 === 0
));

ᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [2, 4]

map

ʕʘ̅͜ʘ̅ʔ

Map over an array.

import { ʕ·ᴥ·ʔ } from 'packmule';

const ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).ʕʘ̅͜ʘ̅ʔ((value, index) => (
  value + value
));

ᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [2, 4, 6, 8]

reduce

ಠ_ಠ

Reduce an array.

import { ʕ·ᴥ·ʔ } from 'packmule';

const ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).ಠ_ಠ((sum, current) => (
  sum + current
));


ᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [10]

getValue

ʕᵔᴥᵔʔ

Get the value at the end of some chained operations (see other functions as well).

import { ʕ·ᴥ·ʔ } from 'packmule';

const ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]);

ᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [1, 2, 3, 4]

Current Tags

  • 1.1.3                                ...           latest (7 years ago)

7 Versions

  • 0.0.0-alpha.0                                ...           a year ago
  • 1.1.3                                ...           7 years ago
  • 1.1.2                                ...           8 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |