2017-09-13 07:52:34 +02:00

6 lines
100 B
JavaScript
Vendored

'use strict';
exports.bin = function bin(str) {
return parseInt(str.replace(/[^01]/g, ''), 2);
}