Skip to content

Instantly share code, notes, and snippets.

View sbeka's full-sized avatar

Bekzhan Seitkali sbeka

View GitHub Profile
@sbeka
sbeka / app.component.ts
Created November 18, 2021 09:56
Example how to use deeplinks-ionic in Capacitor
import { Component, NgZone, OnInit } from '@angular/core';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
const { App } = Plugins;
export class AppComponent extends BaseComponent implements OnInit {
constructor(
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar,
@sbeka
sbeka / multiFilter.js
Created March 15, 2019 19:54 — forked from jherax/arrayFilterFactory.1.ts
Filters an array of objects with multiple criteria.
/**
* Filters an array of objects with multiple criteria.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria as the property names
* @return {Array}
*/
function multiFilter(array, filters) {
const filterKeys = Object.keys(filters);
// filters all elements passing the criteria