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

Function getNewLine

lib/utils/getNewLine.js:10–12  ·  view source on GitHub ↗

* Detect the dominant newline character of a string * @param {String} text * @return {String}

(text)

Source from the content-addressed store, hash-verified

8 * @return {String}
9 */
10function getNewLine(text) {
11 return detectNewline(text) || DEFAULT;
12}
13
14module.exports = getNewLine;

Callers 4

getLinesFunction · 0.85
insertNewLineFunction · 0.85
removeIndentFunction · 0.85
getLineAnchorForOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected