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