• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
金色飞贼
博客园 首页 新随笔 联系 订阅 订阅 管理

随笔分类 -  jsCodeWar

CodeWar my bad solutions
 
jsCodeWar 多函数嵌套调用
摘要:function compose(f, g) { return function() { return f(g.apply(this, arguments)); }; } function compose(f,g) { return function(...a) { return f(g(...a) 阅读全文
posted @ 2016-06-03 17:43 金色飞贼 阅读(281) 评论(0) 推荐(0)
数组prototype添加函数呢,采用回调判定函数内容
摘要:1、解决方案 Array.prototype.all = function (p) { return this.filter(p).length == this.length; }; Array.prototype.none = function (p) { return this.filter(p 阅读全文
posted @ 2016-06-03 15:05 金色飞贼 阅读(315) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3