napi_key_collection_mode
typedef enum {
napi_key_include_prototypes,
napi_key_own_only
} napi_key_collection_mode;
描述 Keys/Properties
过滤器枚举:
¥Describes the Keys/Properties
filter enums:
napi_key_collection_mode
限制了收集属性的范围。
¥napi_key_collection_mode
limits the range of collected properties.
napi_key_own_only
将收集的属性仅限于给定的对象。napi_key_include_prototypes
也将包含对象原型链的所有键。
¥napi_key_own_only
limits the collected properties to the given
object only. napi_key_include_prototypes
will include all keys
of the objects's prototype chain as well.