export default (value) => ! Array.isArray(value) && /^[0-9]*$/.test(value);

import isNumeric from 'validator/lib/isNumeric';

export default (value) => isNumeric(String(value));

use the validator isNumeric