Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d3/d3-array
/ reverse
Function
reverse
src/reverse.js:1–4 ·
view source on GitHub ↗
(values)
Source
from the content-addressed store, hash-verified
1
export
default
function
reverse(values) {
2
if
(typeof values[Symbol.iterator] !==
"function"
) throw
new
TypeError(
"values is not iterable"
);
3
return
Array.from(values).reverse();
4
}
Callers
1
reverse-test.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected