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

Commit

Permalink
Bump all to latest; fix TSLint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Goldberg committed Sep 13, 2019
1 parent 25eca7a commit 3edd1e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/StringFilr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ export class StringFilr<T> implements IStringFilr<T> {
public get(keyRaw: string): T | ILibrary<T> {
let key: string;

if (this.cache.hasOwnProperty(keyRaw)) {
if ({}.hasOwnProperty.call(this.cache, keyRaw)) {
return this.cache[keyRaw];
}

key = this.normal
? keyRaw.replace(this.normal, "")
: keyRaw;

if (this.cache.hasOwnProperty(key)) {
if ({}.hasOwnProperty.call(this.cache, key)) {
return this.cache[key];
}

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

if (current.hasOwnProperty(key)) {
if ({}.hasOwnProperty.call(current, key)) {
keys.splice(i, 1);
return this.followClass(keys, (current as ILibrary<T>)[key]);
}
Expand Down

0 comments on commit 3edd1e5

Please sign in to comment.