From 0e65504adc5f6f02397513f2f28813587e86852c Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 9 Nov 2023 08:41:04 +0000 Subject: [PATCH] Auto-generated commit --- instance-of/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/instance-of/README.md b/instance-of/README.md index 1e8eaa5b..c3846efa 100644 --- a/instance-of/README.md +++ b/instance-of/README.md @@ -75,7 +75,13 @@ var bool = instanceOf( bar, Foo ); - While the prototype of an `object` created using object literal notion is `undefined`, the function returns `true` when provided an `object` literal and the `Object` constructor. This maintains consistent behavior with the `instanceof` operator. + + + + ```javascript + var Object = require( '@stdlib/object/ctor' ); + var bool = ( {} instanceof Object ); // returns true @@ -91,10 +97,16 @@ var bool = instanceOf( bar, Foo ); ## Examples + + + + ```javascript var Number = require( '@stdlib/number/ctor' ); +var Object = require( '@stdlib/object/ctor' ); +var Function = require( '@stdlib/function/ctor' ); var instanceOf = require( '@stdlib/assert/instance-of' ); var bool = instanceOf( [], Array );