fixtures.js 100 B

123456
  1. 'use strict';
  2. exports.bin = function bin(str) {
  3. return parseInt(str.replace(/[^01]/g, ''), 2);
  4. }