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

9 lines
244 B
JavaScript

// https://babeljs.io/docs/babel-plugin-proposal-pipeline-operator
// 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 #.)