assertHasPrototypeProperty
Available since v0.9
Assert that given target object has a prototype
property defined. Throws a TypeError
if target object does not have a prototype
property
See hasPrototypeProperty
for details.
import { assertHasPrototypeProperty } from '@aedart/support/reflections';
assertHasPrototypeProperty({ __proto__: null }); // TypeError