Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 3edd1e5

Browse files
author
Josh Goldberg
committed
Bump all to latest; fix TSLint complaints
1 parent 25eca7a commit 3edd1e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/StringFilr.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ export class StringFilr<T> implements IStringFilr<T> {
9090
public get(keyRaw: string): T | ILibrary<T> {
9191
let key: string;
9292

93-
if (this.cache.hasOwnProperty(keyRaw)) {
93+
if ({}.hasOwnProperty.call(this.cache, keyRaw)) {
9494
return this.cache[keyRaw];
9595
}
9696

9797
key = this.normal
9898
? keyRaw.replace(this.normal, "")
9999
: keyRaw;
100100

101-
if (this.cache.hasOwnProperty(key)) {
101+
if ({}.hasOwnProperty.call(this.cache, key)) {
102102
return this.cache[key];
103103
}
104104

@@ -126,7 +126,7 @@ export class StringFilr<T> implements IStringFilr<T> {
126126
for (let i = 0; i < keys.length; i += 1) {
127127
const key: string = keys[i];
128128

129-
if (current.hasOwnProperty(key)) {
129+
if ({}.hasOwnProperty.call(current, key)) {
130130
keys.splice(i, 1);
131131
return this.followClass(keys, (current as ILibrary<T>)[key]);
132132
}

0 commit comments

Comments
 (0)