Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
flat method
pulusatapathy
Oct 23rd, 2020
708
Never
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.07 KB
raw
download
clone
embed
print
report
const
arr1
=
[
1
,
2
,
[
3
,
4
]
]
console.
log
(
arr1.
flat
(
)
)
[
1
,
2
,
3
,
4
]
RAW Paste Data
const arr1 = [1, 2, [3, 4]] console.log(arr1.flat()) [1, 2, 3, 4]
Public Pastes
OP Sword
Lua | 8 min ago
Untitled
Bash | 16 min ago
Untitled
Java | 31 min ago
asasasaeae21d
Lua | 33 min ago
Among Us morph scr...
Lua | 34 min ago
run wget in parall...
Bash | 49 min ago
Статический полимо...
C++ | 52 min ago
Talisman Function...
Lua | 58 min ago
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!