FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScript/archive/code/node_modules/concat-map/example/map.js at main · mdlufy/JavaScript · GitHub
mdlufy
/
JavaScript
Public
forked from
iu5git/JavaScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScript
/
archive
/
code
/
node_modules
/
concat-map
/
example
/
map.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
6 lines (6 loc) · 171 Bytes
Breadcrumbs
JavaScript
/
archive
/
code
/
node_modules
/
concat-map
/
example
/
map.js
Copy path
File metadata and controls
executable file
·
6 lines (6 loc) · 171 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
var
concatMap
=
require
(
'../'
)
;
var
xs
=
[
1
,
2
,
3
,
4
,
5
,
6
]
;
var
ys
=
concatMap
(
xs
,
function
(
x
)
{
return
x
%
2
?
[
x
-
0.1
,
x
,
x
+
0.1
]
:
[
]
;
}
)
;
console
.
dir
(
ys
)
;
Back
|
FazBrowse Home
|
New Git URL