Skip to content

Instantly share code, notes, and snippets.

View leeziwong's full-sized avatar

leeziwong leeziwong

  • Guangzhou China
View GitHub Profile
let arr1 = [ 1, 2, '3', NaN, '你好', undefined, null, NaN, null]
let arr2 = [2, 3, '3', 0, 2, 1]
let arr = []
let nanNotInArrYet = true
function getUniqueFromArr(dataArr) {
dataArr.forEach(item => {
let itemIndex = 0
itemIndex = arr.indexOf(item)
@leeziwong
leeziwong / .block
Last active February 26, 2018 14:28
泰坦尼克号事故乘客遇难生还分类统计
license: gpl-3.0
height: 600
scrolling: no
border: yes
@leeziwong
leeziwong / .gitignore_custom
Last active June 21, 2017 01:39 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #