Skip to content

Commit

Permalink
Correct name of classIsDirectlyExtended method [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed May 12, 2020
1 parent 4722f77 commit 4480779
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/isDirectlyExtended.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const {validateClass, validateInstance} = require('./shared.js'),
module.exports = {
isDirectlyExtended,
isDirectlyExtendedProto,
classisDirectlyExtended,
classIsDirectlyExtended,
instanceisDirectlyExtended
};

Expand All @@ -28,7 +28,7 @@ module.exports = {
*/
function isDirectlyExtended() {
// eslint-disable-next-line no-invalid-this
return classisDirectlyExtended(this);
return classIsDirectlyExtended(this);
}

/**
Expand All @@ -48,15 +48,15 @@ function isDirectlyExtendedProto() {
*/
function instanceisDirectlyExtended(instance) {
validateInstance(instance);
return classisDirectlyExtended(instance.constructor);
return classIsDirectlyExtended(instance.constructor);
}

/**
* Check if a class has been extended directly (with any extension).
* @param {function} Class - Class
* @returns {boolean} - `true` if extension directly
*/
function classisDirectlyExtended(Class) {
function classIsDirectlyExtended(Class) {
validateClass(Class);
return hasOwnProperty(Class, EXTENSIONS);
}

0 comments on commit 4480779

Please sign in to comment.