Skip to content

Commit c3d20bf

Browse files
committed
Use utils pkg
1 parent dbc6886 commit c3d20bf

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/plot/components/svg/annotations/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/plot/components/svg/annotations/lib/ctor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var debug = require( 'debug' )( 'annotations:main' );
66
var EventEmitter = require( 'events' ).EventEmitter;
77
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
88
var inherit = require( '@stdlib/utils/inherit' );
9+
var instanceOf = require( '@stdlib/assert/instance-of' );
910

1011

1112
// MAIN //
@@ -21,7 +22,7 @@ var inherit = require( '@stdlib/utils/inherit' );
2122
*/
2223
function Annotations() {
2324
var self;
24-
if ( !( this instanceof Annotations ) ) {
25+
if ( !instanceOf( this, Annotations ) ) {
2526
return new Annotations();
2627
}
2728
self = this;

0 commit comments

Comments
 (0)