Use defineProperty to make flatmap non-enumerable.