UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing system. It is developed to power our online editing platform [Substance](http://substance.io).

11 lines (10 loc) 230 B
export default function getKeyForPath (path) { if (path._key === undefined) { Object.defineProperty(path, '_key', { value: path.join('.'), writable: false, enumerable: false }) } return path._key }