11 lines
115 B
JavaScript
11 lines
115 B
JavaScript
|
|
|
|
|
|
module.exports.takeNumberOnly = function (text) {
|
|
let number = text.match(/\d+/)[0];
|
|
return number
|
|
}
|
|
|
|
|
|
|