valid-triangle

Given 3 side lengths, return true or false if valid triangle can be formed.

Usage no npm install needed!

<script type="module">
  import validTriangle from 'https://cdn.skypack.dev/valid-triangle';
</script>

README

valid-triangle

Given 3 side lengths, return true or false if valid triangle can be formed.

const validTriangle = require('valid-triangle');
validTriangle([3, 4, 5]); // true
validTriangle([3, 4, 10]); // false