Jest is running thousands of tests at Facebook at all times, either through continuous integration or invoked by engineers manually during development. This worked well for years even as the people working on Jest moved on to other projects within Facebook. As engineers added more and more tests though, we noticed the performance of Jest wasn't going to scale. Additionally, in the last year the Ja
Javascriptで正規分布の 乱数発生(rnorm)、確率密度関数(dnorm)、累積分布関数(pnorm)、累積分布の逆関数(qnorm) を実装する(逆関数は参照で)。すべて標準正規分布を想定。 Javascriptに限らず使えるアルゴリズムだが、日本語でまとまっている情報があまりないのと、ブラウザ上でA/Bテストなど有意性をみる検定などできたら面白いということでJSでやってみる。 正規乱数の生成(rnorm) 1行でBox-Muller法で。 Box-Muller法とは?
Hierarchical stories: put logs in context (stories), and group them in higher-order stories; they can be a life-saver with concurrent user actions and async events. End-to-end stories: see all client and server tasks triggered by a user action (a click on the Login button, maybe) in a single place. Storyboard DevTools Chrome extension: view client and server logs with a clean and detail-rich inter
This is an ESLint plugin to disable all mutation in JavaScript. Think this is a bit too restrictive? Well if you're using Redux and React, there isn't much reason for your code to be mutating anything. Redux maintains a mutable pointer to your immutable application state, and React manages your DOM state. Your components should be stateless functions, translating data into Virtual DOM objects when
概要 インスタンスであるか判定するためのビルトインシンボルが実装された。 解説 instanceof演算子が「 obj instanceof C 」の形で使われると、「 C[@@hasInstance] 」が定義されていた場合objを引数に呼ばれ、それが返す真偽値が返される。 class X { } class A { static [Symbol.hasInstance](obj) { return obj.constructor == X } } let a = new A, x = new X console.log( a instanceof A ) // false console.log( x instanceof A ) // true ちょっと変わった利用例 型判定に使う const StringOrNumber = { [Symbol.hasInstance](v) {
A proposal to implement weak references in JavaScript – which would expose weak references made possible by WeakMap and WeakSet – is currently sitting at stage 0. Time for another ECMAScript proposal draft. This time we’ll discuss WeakRef. Weak references had their first – indirect – appearance in ES6, with the arrival of WeakMap and WeakSet. The Background and Intended Audience sections, found be
var wrap = require('mocha-wrap'); var expect = require('chai').expect; var mockWindow = { location: { href: 'test/url' } }; wrap().withGlobal('window', () => mockWindow).describe('mocked window', function () { it('is mocked', function () { expect(window).to.equal(mockWindow); }); it('has the right URL', function () { expect(window.location.href).to.equal('test/url'); }); }); var obj = { a: 1 }; wr
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く