unwrap function

Object unwrap (
  1. Object possibleLazyMap
)

Unwrap a given Object that could possibly be a lazy map

Implementation

Object unwrap(Object possibleLazyMap) => possibleLazyMap is LazyDereferencingMap
    ? possibleLazyMap.data
    : possibleLazyMap;