import { default } from "https://deno.land/x/ayonli_jsext@v0.9.72/pipe.ts";
Constructs a Pipeline instance with the given value and performs pipe operations upon it.
Examples
Example 1
Example 1
import pipe from "@ayonli/jsext/pipe";
const { value } = pipe("10")
.pipe(parseInt)
.pipe(Math.pow, 2)
.pipe(v => v.toFixed(2));
console.log(`the value is ${value}`) // the value is 100.00
Parameters
value: T