7 lines
148 B
JavaScript
7 lines
148 B
JavaScript
module.exports = (width, height) => {
|
|
if (width <0 || !width || height < 0 || !height) {
|
|
return null;
|
|
}
|
|
return width/height;
|
|
};
|