MCPcopy Create free account
hub / github.com/SamyPesse/draft-js-code / getIndentForLine

Function getIndentForLine

lib/utils/getIndentForLine.js:8–10  ·  view source on GitHub ↗

* Return indentation of a line * @param {String} line * @return {String}

(line)

Source from the content-addressed store, hash-verified

6 * @return {String}
7 */
8function getIndentForLine(line) {
9 return detectIndent(line).indent || '';
10}
11
12module.exports = getIndentForLine;

Callers 1

insertNewLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected