FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql-action/node_modules/array.prototype.flat/implementation.js at v1 · github/codeql-action · GitHub
github
/
codeql-action
Public
Notifications
You must be signed in to change notification settings
Fork
493
Star
1.6k
Code
Issues
157
Pull requests
32
Actions
Security and quality
2
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql-action
/
node_modules
/
array.prototype.flat
/
implementation.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (18 loc) · 695 Bytes
Breadcrumbs
codeql-action
/
node_modules
/
array.prototype.flat
/
implementation.js
Copy path
File metadata and controls
22 lines (18 loc) · 695 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'use strict'
;
var
ArraySpeciesCreate
=
require
(
'es-abstract/2020/ArraySpeciesCreate'
)
;
var
FlattenIntoArray
=
require
(
'es-abstract/2020/FlattenIntoArray'
)
;
var
Get
=
require
(
'es-abstract/2020/Get'
)
;
var
ToInteger
=
require
(
'es-abstract/2020/ToInteger'
)
;
var
ToLength
=
require
(
'es-abstract/2020/ToLength'
)
;
var
ToObject
=
require
(
'es-abstract/2020/ToObject'
)
;
module
.
exports
=
function
flat
(
)
{
var
O
=
ToObject
(
this
)
;
var
sourceLen
=
ToLength
(
Get
(
O
,
'length'
)
)
;
var
depthNum
=
1
;
if
(
arguments
.
length
>
0
&&
typeof
arguments
[
0
]
!==
'undefined'
)
{
depthNum
=
ToInteger
(
arguments
[
0
]
)
;
}
var
A
=
ArraySpeciesCreate
(
O
,
0
)
;
FlattenIntoArray
(
A
,
O
,
sourceLen
,
0
,
depthNum
)
;
return
A
;
}
;
Back
|
FazBrowse Home
|
New Git URL