yz3456
2024-05-13 6a33216302b27ecd657e8e53b12286518a56d1a8
1
2
3
4
5
'use strict';
 
exports.bin = function bin(str) {
  return parseInt(str.replace(/[^01]/g, ''), 2);
}