boundingbox.js 251 Bytes
Newer Older
Athanasios's avatar
Athanasios committed
1
2
3
4
5
6
7
8
9
10
11
12
const isValid = (value) => {

  let tokens = value.split(",");
  tokens = tokens.map(token => parseFloat(token));
  if (tokens[0] < tokens[2] && tokens[1] < tokens[3]) {
    return true;
  }
  return false;

}

module.exports = { isValid };