linwenling
2023-04-11 25ddd158fa9be7784c5b513bd3f7f8290e372b7f
1
2
3
4
5
'use strict';
 
exports.bin = function bin(str) {
  return parseInt(str.replace(/[^01]/g, ''), 2);
}