Giter Site home page Giter Site logo

hand-written's Introduction

Hand-Written

Some hand-written Demo in JavaScript.

数组

  • 使用reduce实现map
  • 使用reduce实现filter
  • 实现flattern函数

函数

  • 原生实现 call 和 apply
  • 使用call 实现 bind
  • 实现一个wait函数,每隔delay秒执行func,一共执行times次
  • 函数柯里化
  • 防抖 debouncing
  • 节流 throttling
  • 函数compose
  • 多种方法实现 Sleep函数
  • 高阶函数HOC

对象

  • 实现一个 new 操作
  • 实现简易版 instanceOf
  • 对象展开flatten

Promise

  • 简易Promise 与 Promise

Node

  • EventEmitter (on | once | emit | clear)

MVVM

  • Proxy 实现简易双向绑定

Babel

  • 实现简易Babel转换箭头函数为函数声明

Ajax

  • 手动实现JSONP(Promise版)

Performance

  • 上万条数据的优化渲染 (Fragment,requestAnimationFrame)

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.