Module

utils/objecttomap

@ckeditor/ckeditor5-utils/src/objecttomap

module

Filtering

Functions

  • objectToMap( obj ) → Map

    static

    Transforms object to map.

    const map = objectToMap( { 'foo': 1, 'bar': 2 } );
    map.get( 'foo' ); // 1

    Parameters

    obj : Object

    Object to transform.

    Returns

    Map

    Map created from object.