import type { Path } from "@thi.ng/api" ; import { getInUnsafe } from "@thi.ng/paths/get-in" ; import { map } from "@thi.ng/transducers/map" ; import type { NodeFactory } from "../api.js" ; import { node1 } from "../graph.js" ; param path param inputID export const extract = ( path , inputID ? ) : NodeFactory < any > => node1 ( map ( ( x ) => getInUnsafe ( x , path ) ) , inputID ) ;