Files
test-repo/tests/format/js/babel-plugins/pipeline-operator-hack.cjs
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
244 B
JavaScript
Raw Normal View History

// https://babeljs.io/docs/babel-plugin-proposal-pipeline-operator
2021-08-15 01:16:13 +09:00
// https://github.com/js-choi/proposal-hack-pipes
return list
|> take(prefix.length, %)
|> equals(%, prefix);
// (The % token isn't final; it might instead be @ or ? or #.)