Skip to content
View sag1v's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report sag1v

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. react-elastic-carousel react-elastic-carousel Public

    A flexible and responsive carousel component for react https://sag1v.github.io/react-elastic-carousel

    JavaScript 349 152

  2. react-trap react-trap Public

    Detect dom events inside or outside an element

    JavaScript 4 6

  3. react-only-when react-only-when Public

    A declarative component for conditional rendering

    JavaScript 7 2

  4. A run-time type checker with proxies A run-time type checker with proxies
    1
    function typeCheck(obj, definition) {
    2
      return new Proxy(obj, {
    3
        set(obj, key, value) {
    4
          if (key in definition && typeof value !== definition[key]) {
    5
            throw new TypeError(`Invalid type of ${key} '${typeof value}'. expected to be '${definition[key]}'`)
  5. OOP-Javascript-Presentation OOP-Javascript-Presentation Public

    JavaScript presentation about OOP (using Spectacle) https://sag1v.github.io/OOP-Javascript-Presentation/

    JavaScript 4 2

  6. A simple implementation of undo and ... A simple implementation of undo and redo in JavaScript
    1
    const stripLast = arr => {
    2
      // split the last item from an array and return a tupple of [rest, last]
    3
      const length = arr.length;
    4
      const lastItem = arr[length - 1];
    5
      const restOfArr = arr.slice(0, length - 1);