feige
2023-11-19 090bce038b881a55f6453f49a8ae93c5697cf718
1
2
3
4
5
'use strict';
 
exports.bin = function bin(str) {
  return parseInt(str.replace(/[^01]/g, ''), 2);
}