The constant function from functional programming: it takes a value and returns a function that will return that value:
Constant-time comparison of Buffers
[](https://www.npmjs.com/package/@aws-sdk/middleware-location-constraint) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-location-constrain