mirror of
https://github.com/FullScreenShenanigans/StringFilr.git
synced 2026-08-12 02:18:27 -07:00
Bump all to latest; fix TSLint complaints
This commit is contained in:
+3
-3
@@ -90,7 +90,7 @@ 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];
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ export class StringFilr<T> implements IStringFilr<T> {
|
||||
? keyRaw.replace(this.normal, "")
|
||||
: keyRaw;
|
||||
|
||||
if (this.cache.hasOwnProperty(key)) {
|
||||
if ({}.hasOwnProperty.call(this.cache, key)) {
|
||||
return this.cache[key];
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user