add method

dynamic add(
  1. dynamic key,
  2. dynamic object
)

Implementation

add(key, object) {
  objects[key] = object;
}