UNPKG

camunda-modeler

Version:

Camunda Modeler for BPMN, DMN and CMMN, based on bpmn.io

16 lines (14 loc) 395 B
'use strict'; /** * Adds right padding to the string. * Takes initial text to pad, total length and optional sequence to pad with * * @param {String} text * @param {integer} length * @param {String} sequence * @return {String} */ function padRight(text, length, sequence) { return text + Array(length - text.length + 1).join(sequence || ' '); } module.exports.padRight = padRight;