1-liners
Version:
Useful oneliners and shorthand functions
24 lines (21 loc) • 343 B
JavaScript
/**
* @module 1-liners/bitAnd
*
* @description
*
* Same as `a & b`.
*
* @example
*
* const bitAnd = require('1-liners/bitAnd');
*
* bitAnd(1, 2); // => 0
* bitAnd(2, 2); // => 2
*
*/
;
exports.__esModule = true;
exports["default"] = function (x, y) {
return x & y;
};
module.exports = exports["default"];