Skip to content

Instantly share code, notes, and snippets.

@finlie
finlie / .gitignore
Created May 25, 2018 16:46 — forked from luishrd/.gitignore
React Testing
// /.gitignore
# See https://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/node_modules
# testing
/coverage
@finlie
finlie / index.js
Created May 25, 2018 16:46 — forked from luishrd/index.js
Client Testing
const utilities = require('../index');
describe.skip('default', () => {
it('run the tests', () => {});
});
describe('add function', () => {
// afterAll(() => {
// console.log('after all ran');
// });
@finlie
finlie / .gitignore
Created May 25, 2018 16:44 — forked from luishrd/.gitignore
Server Testing
node_modules
.DS_Store
.vscode
@finlie
finlie / 00-intro.md
Last active May 23, 2018 16:09 — forked from mdo/00-intro.md
Instructions for how to affix an Ikea Gerton table top to the Ikea Bekant sit-stand desk frame.

Ikea Bekant standing desk with Gerton table top

@finlie
finlie / User.js
Created May 16, 2018 21:04 — forked from luishrd/App.js
JWT Server, all other files remain the same
const mongoose = require('mongoose');
const bcrypt = require('bcrypt');
const userSchema = new mongoose.Schema({
username: {
type: String,
required: true,
unique: true,
lowercase: true,
},
@finlie
finlie / User.js
Created May 16, 2018 21:04 — forked from luishrd/User.js
Auth Sprint
const mongoose = require('mongoose');
const bcrypt = require('bcrypt'); //< ===========
const userSchema = new mongoose.Schema({
username: {
type: String,
required: true,
unique: true,
lowercase: true, // Kyle => kyle
},

Array<T>

Legend:

  • ✏️ method changes this.
  • 🔒 method does not change this.

Array<T>.prototype.*:

  • concat(...items: (T | Array)[]): T[] 🔒 ES3