Expandable Search Field
A Pen by Joey Hayes on CodePen.
A Pen by Joey Hayes on CodePen.
/** | |
* Controls whether debug functions have any output to console. | |
* @type {Boolean} | |
*/ | |
var DEBUG_IS_ENABLED = true; | |
/** | |
* Debug constructor | |
* @method Debug | |
* @param {string} objectName The name of the parent object of all logged data |
var gulp = require('gulp'); | |
var yargs = require('yargs'); | |
var DEPLOY = Boolean(yargs.argv.production); | |
/** | |
* Jekyll Task | |
* | |
* Make Jekyll run stuff when told to by gulp. | |
* |
function arraysMatch(arrayOne, arrayTwo) { | |
let match = false; | |
if (arrayOne.length !== arrayTwo.length) { | |
return false; | |
} | |
for (let indexOne = 0; indexOne < arrayOne.length; indexOne += 1) { | |
// For checking for a match to the current ArrayOne value | |
let valueMatch = false; | |
for (let indexTwo = 0; indexTwo < arrayTwo.length; indexTwo += 1) { |
/** | |
* Copyright (c) 2019-present, Brian J. Hayes. | |
* | |
* https://github.com/joeyred | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
export function fixedDecimalPlaces(number, places) { |
/* eslint-disable no-console */ | |
import * as Sentry from '@sentry/browser'; | |
let production = false; | |
/** | |
* Initialize reporter. This should be done as soon as possible. | |
* @method initReporter | |
* @param {Boolean} isProduction - If the app is currently running in | |
* production or not. |