import Image from '../image/image';
import isArray from 'is-array-type';

export function checkNumberArray(value) {
    if (!isNaN(value)) {
        if (value <= 0) throw new Error('checkNumberArray: the value must be greater than 0');
        return value;
    } else {
        if (value instanceof Image) {
            return Image.data;
        }
        if (!isArray(value)) {
            throw new Error('checkNumberArray: the value should be either a number, array or Image');
        }
        return value;
    }
}


@@ -321,20 +321,20 @@
  return 
-Imag
+valu
 e.data;%0A

Fix bug in value.js