programming:javascript

Interesting JS ES

Javascript Tranding popularity trand insight

Data Visualization

  JMESPath - features[?geometry.type == `LineString`]
 
// Filter function for https://jsoneditoronline.org/ and recursive filter names
function query(data) {
  return _.chain(data)
    .mapValues(value => {
      if (_.isPlainObject(value)) {
        return filterKeys(value, ['name','mess']);
      }
      return value;
    })
    .pickBy(obj => _.isPlainObject(obj) && Object.keys(obj).length > 0)
    .map( (item) => item["object Object"])
    .value();
}
 
function filterKeys(obj, wildcards) {
  const result = {};
  const filter = (val, key, parent) => {
    if (_.isPlainObject(val)) {
      _.forEach(val, filter);
    }
    if (_.some(wildcards, wildcard => _.includes(key, wildcard))) {
      _.set(result, `${parent}.${key}`, val);
    }
  };
  filter(obj, 'root', 'root');
  return result;
}
  1. `document.designMode` that feeling when you first discovered `document.designMode` https://t.co/bxA1otzCjN

Chrome console load library

Chrome console save method

Process obect

Manipulating data

Example Fetch

Nodejs.log

Node.js speed

  • programming/javascript.txt
  • Last modified: 2024/06/21 00:11
  • by admin