Giter VIP home page Giter VIP logo

Comments (20)

waitinghope avatar waitinghope commented on August 19, 2024

lodash+1

from underscore-analysis.

flashback313 avatar flashback313 commented on August 19, 2024

lodash+1

from underscore-analysis.

Dmmo avatar Dmmo commented on August 19, 2024

lodash +11

from underscore-analysis.

givebest avatar givebest commented on August 19, 2024

lodash +1

from underscore-analysis.

geraldlrh avatar geraldlrh commented on August 19, 2024

lodash+1

from underscore-analysis.

lixuejiang avatar lixuejiang commented on August 19, 2024

想问一下https://yoyoyohamapi.gitbooks.io/undersercore-analysis/content/base/%E5%B1%80%E9%83%A8%E5%8F%98%E9%87%8F%E7%9A%84%E5%A6%99%E7%94%A8.html 这本书是你写的吗

from underscore-analysis.

lessfish avatar lessfish commented on August 19, 2024

@lixuejiang 这个还真不是

from underscore-analysis.

wanglinjiang avatar wanglinjiang commented on August 19, 2024

写的很不错,点个赞

from underscore-analysis.

BigKongfuPanda avatar BigKongfuPanda commented on August 19, 2024

想你学习了。我打算追随你的脚步了。我作为js初学者,只是对几个重要的概念有了了解,但是还没有真正的深入研究过使用过。

from underscore-analysis.

MarioGogogo avatar MarioGogogo commented on August 19, 2024

学习大牛,刻骨专研的精神。

from underscore-analysis.

xuexiaobin5 avatar xuexiaobin5 commented on August 19, 2024

_.contains = _.includes = _.include = function (obj, item, fromIndex, guard) {
// 代码
};
这个方法第四个参数的作用是什么?

from underscore-analysis.

FrontToEnd avatar FrontToEnd commented on August 19, 2024

lodash+1 前不久细读过源代码,奈何水平不够,很多看不懂

from underscore-analysis.

chiyanking avatar chiyanking commented on August 19, 2024

楼主好人,楼主加油。

from underscore-analysis.

yuchaoWu avatar yuchaoWu commented on August 19, 2024

学到了很多,谢谢,期待看到楼主继续出其他解读的文章

from underscore-analysis.

ryan0217 avatar ryan0217 commented on August 19, 2024

楼主在underscore的解读中的2200-2201行标注了
// 这一步有必要?
var obj = Object(object);
我在看这里的时候发现_.isMatch方法中只对传入的attrs进行了对象检测,而没有对object进行检测,所以传入的object参数可能并不是一个对象,也可以是单纯的字符串
比如: object是 'string',而attrs是 ['s', 't', 'r', 'i', 'n', 'g']
如果源码中没有 var obj = Object(object); 这一句的话,将会在执行2211行中的 key in obj 时报错:Uncaught TypeError: Cannot use 'in' operator to search for '0' in string at Function._.isMatch
具体为什么我也没弄懂,真萌新菜鸟一枚。。只是知道了这一步是有必要的

from underscore-analysis.

yuanxiaohuilearning avatar yuanxiaohuilearning commented on August 19, 2024

感谢这么好的文章,这么好的注释;作为初学者,看不懂underscore 码源,英语不好,看会头大,哈哈,今天终于找到这么好的文章,饿要开心的看下去了,,再次感谢!!

from underscore-analysis.

huyansheng3 avatar huyansheng3 commented on August 19, 2024

lodash +1000000

但是 lodash 的代码比较多,拆的比较细,提取不少了 internal方法,写的不如 underscore 直白,看的时候很蛋疼。

不晓得楼主有什么比较好的方式呢?

from underscore-analysis.

ariesdevil avatar ariesdevil commented on August 19, 2024

ramda +10086

from underscore-analysis.

echopairs avatar echopairs commented on August 19, 2024

good!

from underscore-analysis.

xr-betty avatar xr-betty commented on August 19, 2024

from underscore-analysis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.