INNER CODE UNIT · TypeScript

isLast

zhenorzz/goploy · web/src/components/JSONTree/index.ts:68

          isLast = obj.length - 1

          obj.forEach(function (item, i) {
            func(i, item, i === isLast)
          })

          break

        case 'object':
          var keys = Object.keys(obj).sort()

          isLast = keys.length - 1

          keys.forEach(function (item, i) {
            func(item, obj[item], i === isLast)
          })

          break

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…