Skip to content

Instantly share code, notes, and snippets.

Masaki Moriyama masaquid

Block or report user

Report or block masaquid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sample.js
Array.prototype.sample = function(n) {
return Array.from(this).sort(_ => Math.random() - 0.5).splice(0, n > this.length ? this.length : n||1)
let hoge = [1,2,3,4,5];
You can’t perform that action at this time.