MCPcopy Create free account
hub / github.com/d3/d3-shape / x

Function x

src/point.js:1–3  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

1export function x(p) {
2 return p[0];
3}
4
5export function y(p) {
6 return p[1];

Callers 1

lineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected