Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 191B

12345678910
  1. 'use strict';
  2. module.exports = string => {
  3. const match = string.match(/^[ \t]*(?=\S)/gm);
  4. if (!match) {
  5. return 0;
  6. }
  7. return match.reduce((r, a) => Math.min(r, a.length), Infinity);
  8. };