上一页 1 ··· 445 446 447 448 449 450 451 452 453 ··· 491 下一页
摘要: Learn how two common array functions - map() and filter() - are syntactic sugar for reduce operations. Learn how to use them, how to compose them, and... 阅读全文
posted @ 2015-11-29 18:00 Zhentiw 阅读(213) 评论(0) 推荐(0)
摘要: For Redux, you cannot use mutable methods like push, splice. Need to use immutable methods such as concat, slice and ...spreadHtml: JS Bin push(... 阅读全文
posted @ 2015-11-29 01:29 Zhentiw 阅读(942) 评论(0) 推荐(0)
摘要: Currying is a core concept of functional programming and a useful tool for any developer's toolbelt.Example 1:let f = a => b => c => a+b+c;let result ... 阅读全文
posted @ 2015-11-29 00:50 Zhentiw 阅读(207) 评论(0) 推荐(0)
摘要: Array slice creates a shallow copy of an array. In this lesson we cover, in detail, exactly what a 'shallow' copy is and how it can trip people up. We... 阅读全文
posted @ 2015-11-27 03:50 Zhentiw 阅读(324) 评论(0) 推荐(0)
摘要: var parts = ['shoulders', 'knees'];var lyrics = ['head', ...parts, 'and', 'toes']; // ["head", "shoulders", "knees", "and", "toes"]var arr1 = [0, 1, 2... 阅读全文
posted @ 2015-11-27 03:06 Zhentiw 阅读(318) 评论(0) 推荐(0)
摘要: angular.module('MyApplication', ['ngAnimate']) .controller('ApplicationController', ['$interval', function($interval) { var banner... 阅读全文
posted @ 2015-11-27 01:48 Zhentiw 阅读(490) 评论(0) 推荐(0)
摘要: Before you use the React Redux bindings, learn how to create a complete simple application with just React and Redux. JS Bin const counter = ... 阅读全文
posted @ 2015-11-26 03:38 Zhentiw 阅读(674) 评论(0) 推荐(0)
摘要: Learn how to build a reasonable approximation of the Redux Store in 20 lines. No magic!const counter = (state = 0, action) => { switch (action.type) ... 阅读全文
posted @ 2015-11-26 02:12 Zhentiw 阅读(209) 评论(0) 推荐(0)
摘要: console.clear();const counter = (state = 0, action) => { switch (action.type) { case 'INCREMENT': return state + 1; case 'DECREMENT': ... 阅读全文
posted @ 2015-11-25 03:17 Zhentiw 阅读(1014) 评论(0) 推荐(0)
摘要: Single immutable state tree: Should be just one single javascript object.Describing the changes by action: every change in the application state as ... 阅读全文
posted @ 2015-11-25 03:03 Zhentiw 阅读(208) 评论(0) 推荐(0)
上一页 1 ··· 445 446 447 448 449 450 451 452 453 ··· 491 下一页