Skip to content
  • This project
    • Loading...
  • Sign in

dev / home-with-kids-mp

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • home-with-kids-mp
  • src
  • ui
  • vant-weapp
  • wxs
  • object.wxs
  • simon's avatar
    默认提交 · 2632c460
    2632c460
    simon committed 2019-11-10 14:48:36 +0800
object.wxs 249 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
/* eslint-disable */
var REGEXP = getRegExp('{|}|"', 'g');

function keys(obj) {
  return JSON.stringify(obj)
    .replace(REGEXP, '')
    .split(',')
    .map(function(item) {
      return item.split(':')[0];
    });
}

module.exports.keys = keys;