The Map object holds key-value pairs and remembers the original insertion order of the keys. Any value (both objects and primitive values) may be used as either a key or a value.
The Set object lets you store unique values of any type, whether primitive values or object references.
import _ from "lodash";
const items2 = [