UNPKG
whats-that-gerber
Version:
latest (4.2.7)
next (5.0.0-next.0)
5.0.0-next.0
4.2.7
4.2.2
4.2.0
4.1.1
4.0.2
4.0.1
4.0.0
4.0.0-next.19
4.0.0-next.15
4.0.0-next.13
4.0.0-next.12
4.0.0-next.10
4.0.0-next.9
4.0.0-next.4
4.0.0-next.3
3.0.0
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0
Identify Gerber and drill files by filenamee
github.com/tracespace/tracespace
tracespace/tracespace
whats-that-gerber
/
lib
/
flat-map.js
8 lines
(6 loc)
•
190 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
'use strict'
module
.
exports
=
function
flatMap
(
collection, iterator
) {
return
collection.
reduce
(
function
iterate
(
result, element
) {
return
result.
concat
(
iterator
(element)) }, []) }