MAJOR=4
MINOR=40
DEVNAME=tty40
  A   ˆl–Ãa¾”ÊC]Še@
ãB¸ÐTÅ£�þ_«7(Û#’4ø†Ð?ŸÑƒ"wÐ_ŠI|¥ŠGgYâ¯ÁÏ 	    # p-each-series [![Build Status](https://travis-ci.com/sindresorhus/p-each-series.svg?branch=master)](https://travis-ci.com/github/sindresorhus/p-each-series)

> Iterate over promises serially

Useful as a side-effect iterator. Prefer [`p-map`](https://github.com/sindresorhus/p-map) if you don't need side-effects, as it's concurrent.

## Install

```
$ npm install p-each-series
```

## Usage

```js
const pEachSeries = require('p-each-series');

const keywords = [
	getTopKeyword(), //=> Promise
	'rainbow',
	'pony'
];

const iterator = async element => saveToDiskPromise(element);

(async () => {
	console.log(await pEachSeries(keywords, iterator));
	//=> ['unicorn', 'rainbow', 'pony']
})();
```

## API

### pEachSeries(input, iterator)

Returns a `Promise` that is fulfilled when all promises in `input` and ones returned from `iterator` are fulfilled, or rejects if any of the promises reject. The fulfillment value is the original `input`.

#### input

Type: `Iterable<Promise | unknown>`

Iterated over serially in the `iterator` function.

#### iterator(element, index)

Type: `Function`

Return value is ignored unless it's `Promise`, then it's awaited before continuing with the next iteration.

### pEachSeries.stop

Stop iterating through items by returning `pEachSeries.stop` from the iterator function.

```js
const pEachSeries = require('p-each-series');

// Logs `a` and `b`.
const result = await pEachSeries(['a', 'b', 'c'], value => {
	console.log(value);

	if (value === 'b') {
		return pEachSeries.stop;
	}
});

console.log(result);
//=> ['a', 'b', 'c']
```

## Related

- [p-map-series](https://github.com/sindresorhus/p-map-series) - Map over promises serially
- [p-series](https://github.com/sindresorhus/p-series) - Run promise-returning & async functions in series
- [p-pipe](https://github.com/sindresorhus/p-pipe) - Compose promise-returning & async functions into a reusable pipeline
- [p-waterfall](https://github.com/sindresorhus/p-waterfall) - Run promise-returning & async functions in series, each passing its result to the next
- [p-reduce](https://github.com/sindresorhus/p-reduce) - Reduce a list of values using promises into a promise for a value
- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently
- [Moreâ€¦](https://github.com/sindresorhus/promise-fun)
     ˆÌËÑ703ÉÁÏ ¿    ‹      Õ–[sš@†ïó+¶\ôN5¤cÀ&EEŒM:½XY„UNaWÁüú¢˜ÑvbSgÒÌôj?àýïÃÀ®òIïköÃ ní^Æ×]C\ÂIUƒP·õò�Ì"„m“œÏXr	a–e|VåãÔƒ¶}2¤,%ã1Ãœz¦lî©g@ñ]„‹(Œ°ÀU�»9ˆg ÆKF	v¥—àe$øŒÂaÈÂ:Èñ]ˆ(u…4Icg±‰VÅH¼ éP�eÝ¢ÜµR¦1^o&ÿA·¢èÖšn›nÂTU˜V( ^ÔäXœpªBBÐÔir�8qDá4@Ñ‚÷ÈŒ(`Mî»¡õ:ÈüM¶ª à§î¬É}ÑšæU¿©sª‰BW�èuM¯Ð´8µ‹(aŒÉŒ¸ø¨xTŠGäùxA½Ôè.uR’0G{),,Zuâ€&¨ðZ+øé¡ª”à·h çƒ–Õ6mÝ°J$xSb?Ý»¼;N Ô�ÐIê:,N×;e³ÏÑ”&W/—`7}J<Ÿq* ðªòËËhÅYtèº úª_:µ‹V‹ÕÃI.�*8z]äÞ'3¹–-Emô´žwI­7ä·¦9õä”Có¿¹•©^…Šp$éR” 8&ä«wŠMp°Æ¶ö­­áúÚ·e£çY¸kjyÿ¡“
“àîÛx�åÄ”7±ˆ©„úeM>ŠEäå�ÅâÖï«yOÔ¦ÎR˜XÓôé¢«UòÕzÕ¦ŽyC{¾e%�—/öXNLy, ZÿØ�hž/‘ÎkÁ.b½1ý\×V�AFòù�Ô}Æ:Éæ�x�åÄ”ÿK~}¬¤q­Ÿ­êf/�Çö-YÚOSù¦5þ:©ÕÏ…ÑÌÌ�,'¦¼Ç¿ElÈÀò—{ÜíÒ
ÜžXžI~r½wö    5   ˆl–Ým_J25*�ÆZ¸ÛjbÑ¿�þZŒ+6R3,nÈë¯�ÏÓƒ€ÒÂÐ ±    JSON in JavaScript


Douglas Crockford
douglas@crockford.com

2019-08-25


JSON is a light-weight, language independent, data interchange format.
See http://www.JSON.org/

JSON became a built-in feature of JavaScript when the ECMAScript Programming
Language Standard - Fifth Edition was adopted by the ECMA General Assembly
in December 2009.


json2.js: This file creates a JSON property in the global object, if there
isn't already one, setting its value to an object containing a stringify
method and a parse method. The parse method uses the eval method to do the
parsing, guarding it with several regular expressions to defend against
accidental code execution hazards. On current browsers, this file does nothing,
preferring the built-in JSON object. There is no reason to use this file unless
fate compels you to support IE8, which is something