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.

formatBuilderName.js 319B

12345678
  1. const toLowerCase = Function.call.bind("".toLowerCase);
  2. export default function formatBuilderName(type) {
  3. // FunctionExpression -> functionExpression
  4. // JSXIdentifier -> jsxIdentifier
  5. // V8IntrinsicIdentifier -> v8IntrinsicIdentifier
  6. return type.replace(/^([A-Z](?=[a-z0-9])|[A-Z]+(?=[A-Z]))/, toLowerCase);
  7. }