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