摘要: Let's try creating a deeper tree structure. This time we have 4 separate arrays each containing lists, videos, boxarts, and bookmarks respectively. Ea 阅读全文
posted @ 2016-06-27 21:54 Zhentiw 阅读(318) 评论(0) 推荐(0)
摘要: 1. Use a for loop to traverse the videos and bookmarks array at the same time. For each video and bookmark pair, create a {videoId, bookmarkId} pair a 阅读全文
posted @ 2016-06-27 16:31 Zhentiw 阅读(215) 评论(0) 推荐(0)
摘要: Three ways to make object immutable: 1. Use JSON.parse(JSON.stringify(obj)): this approach is little bit expense. 2. Use Object.create() This is a che 阅读全文
posted @ 2016-06-27 16:06 Zhentiw 阅读(302) 评论(0) 推荐(0)