Detect element text overflowed.
npm install @jswork/is-overflowed
import isOverflowed from '@jswork/is-overflowed';
const el = document.getElementById('my-element');
const isOverflowed = isOverflowed(el);
console.log(isOverflowed); // true or false
/// <reference types="@jswork/is-overflowed/global.d.ts" />
Code released under the MIT license.