Skip to content

Instantly share code, notes, and snippets.

const reduce = function(callback) {
'use strict';
if (this == null) {
throw new TypeError('Array.prototype.reduce called on null or undefined');
}
if (typeof callback !== 'function') {
throw new TypeError(callback + ' is not a function');
}

Keybase proof

I hereby claim:

  • I am dansorahan on github.
  • I am dansorahan (https://keybase.io/dansorahan) on keybase.
  • I have a public key ASCu0JzTl4zWjxU_BMPXhPZ2clhZqSVCMv6EXNJT0-x70go

To claim this, I am signing this object:

<?php
namespace Tests;
use PHPUnit\Framework\Assert;
use Illuminate\Foundation\Testing\TestResponse;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
abstract class TestCase extends BaseTestCase