‘liusuyi’
2023-05-30 44ef24375d57b7bf38369aa8de83605e800460d9
1
2
3
4
5
'use strict';
 
exports.bin = function bin(str) {
  return parseInt(str.replace(/[^01]/g, ''), 2);
}