Skip to main content
Module

x/ldkit/library/asynciterator.ts>AsyncIterator#getProperty

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
method AsyncIterator.prototype.getProperty
Re-export
import { AsyncIterator } from "https://deno.land/x/ldkit@v0.6.3/library/asynciterator.ts";

Retrieves the property with the given name from the iterator. If no callback is passed, it returns the value of the property or undefined if the property is not set. If a callback is passed, it returns undefined and calls the callback with the property the moment it is set.

Parameters

propertyName: string

The name of the property to retrieve

optional
callback: (value: P) => void

Returns

P | undefined

The value of the property (if set and no callback is given)