UNPKG

redraft

Version:

Renders the result of Draft.js convertToRaw using provided callbacks, works well with React

16 lines (14 loc) 327 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /** * Joins the input if the joinOutput option is enabled */ var checkJoin = function checkJoin(input, options) { if (Array.isArray(input) && options.joinOutput) { return input.join(''); } return input; }; exports.default = checkJoin;