Sha256: 3b7ae95a3de35616f872fed87c93a8e9a8b6684d31132eedac6cf8e3f36b3625
Contents?: true
Size: 282 Bytes
Versions: 13
Compression:
Stored size: 282 Bytes
Contents
"use strict"; const toLowerCase = Function.call.bind("".toLowerCase); module.exports = function formatBuilderName(type) { // FunctionExpression -> functionExpression // JSXIdentifier -> jsxIdentifier return type.replace(/^([A-Z](?=[a-z])|[A-Z]+(?=[A-Z]))/, toLowerCase); };
Version data entries
13 entries across 13 versions & 4 rubygems