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