Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
node_modules
/
table
/
dist
/
Filename :
calculateCellWidthIndex.js.flow
back
Copy
import stringWidth from 'string-width'; /** * Calculates width of each cell contents. * * @param {string[]} cells * @returns {number[]} */ export default (cells) => { return cells.map((value) => { return Math.max( ...value.split('\n').map((line) => { return stringWidth(line); }) ); }); };