MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / iterator

Method iterator

napi-inl.h:1943–1947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1941}
1942
1943inline Object::iterator::iterator(Object* object, const Type type) {
1944 _object = object;
1945 _keys = object->GetPropertyNames();
1946 _index = type == Type::BEGIN ? 0 : _keys.Length();
1947}
1948
1949inline Object::iterator Napi::Object::begin() {
1950 iterator it(this, Object::iterator::Type::BEGIN);

Callers

nothing calls this directly

Calls 2

GetPropertyNamesMethod · 0.80
LengthMethod · 0.80

Tested by

no test coverage detected