Skip to main content

removeStop

The stops without the one named by id. Returns the same list when there is no such stop.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { removeStop } from "@mapcairn/core";

function removeStop(stops: readonly DirectionStop[], id: string): readonly DirectionStop[];

Parameters​

  • stops (readonly DirectionStop[])
  • id (string)

Returns​

readonly DirectionStop[]

See also​

Source: packages/core/src/directions/directions.ts:74