Replace lodash with built-ins where possible to reduce bundle size (#1766)
* add tslint rule to disallow lodash.isUndefined * add tslint rule to disallow lodash.isNull * apply fixes
This commit is contained in:
@@ -21,7 +21,7 @@ export class Analytics {
|
||||
}
|
||||
public static getHeap(): HeapAnalytics {
|
||||
const heap = (window as any).heap;
|
||||
if (!_.isUndefined(heap)) {
|
||||
if (heap !== undefined) {
|
||||
return heap;
|
||||
} else {
|
||||
throw new Error('Could not find the Heap SDK on the page.');
|
||||
|
||||
Reference in New Issue
Block a user