import { Data } from 'slate'
Data is simply a thin wrapper around Immutable.Maparrow-up-right, so that you don't need to ever depend on Immutable directly, and for future compatibility.
Immutable.Map
A data object can have any properties associated with it.
Data.create
Data.create(properties: Object) => Data
Create a data object from a plain Javascript object of properties.
properties
Data.fromJSON
Data.fromJSON(object: Object) => Data
Create a data object from a JSON object.
object
Last updated 7 years ago