Check if a number or a string is a digit in the octal numeral system digit
$ npm install --save is-octal-digit
const isOctalDigit = require('is-octal-digit');
isOctalDigit(0);
//=> true
isOctalDigit('2');
//=> true
isOctalDigit('abc');
//=> false
isOctalDigit('9');
//=> false
isOctalDigit('01');
//=> false
MIT © Arthur Verschaeve