Files
test-repo/tests/format/js/babel-plugins/pipeline-operator-hack.cjs
T
renovate[bot]andfisker fad27abf37 chore(deps): update dependency meriyah to v7 (#18332)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-11-27 13:19:42 +08:00

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 #.)