Skip to content

Commit 806140d

Browse files
committed
Revert "Merge branch 'dev'"
This reverts commit 0bce8fe, reversing changes made to 90a4381.
1 parent 0bce8fe commit 806140d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

isType.mjs.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,10 @@ function is(value){
147147
for(const propName in new TypeTest()){
148148
// For each descriptor name:
149149

150-
// Add a getter to the `is` function that returns the name of the descriptor.
151-
// This allows you to do `is(val).all(is.number, is.object)` instead of `is(val).all('number', 'object')`.
150+
// Add an enumerable property to the `is` function.
152151
Object.defineProperty(is, propName, {
153-
get: function(){ return propName; },
152+
value: propName,
154153
enumerable: true,
155-
configurable: true,
156154
});
157155
}
158156

0 commit comments

Comments
 (0)