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