UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

14 lines (13 loc) 433 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.copyPrivateAttributes = void 0; var copyPrivateAttributes = exports.copyPrivateAttributes = function copyPrivateAttributes(from, to, attributes, map) { var attrs = attributes || {}; Object.keys(attrs).forEach(function (key) { if (key[0] === '_' && key[1] === '_' && from[key]) { to[map ? map(key) : key] = from[key]; } }); };