- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for returns (0.17 sec)
-
.cm/plugins/filters/nullToEmpty/index.js
/** * @module nullToEmpty * @description Returns the specified value if non-null, otherwise an empty array. * @param {Object} input - The object to investigate * @returns Object - The specified value if non-null, otherwise an empty array * @example {{ readField('jvm', 'files') | nullToEmpty }} */ function nullToEmpty(input) { let output; if (input) { output = input; } else { output = []; }
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Apr 22 16:43:16 GMT 2024 - 526 bytes - Viewed (0) -
.cm/plugins/filters/byPlatform/index.js
}); return result; } function getPlatform(file) { let result = null; // Default to null in case no platform is found if (file.startsWith('platforms/')) { const parts = file.split('/'); result = parts[1]; } console.log(file + " = " + result); return result; }
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Apr 22 16:47:29 GMT 2024 - 1K bytes - Viewed (0) -
.cm/plugins/filters/byCodeowner/index.js
auth, }); const res = await octokit.repos.getContent({ owner, repo, path: pathToCodeOwners }); return Buffer.from(res.data.content, 'base64').toString() } function codeownersMapping(data) { return data .toString() .split('\n') .filter(x => x && !x.startsWith('#')) .map(x => x.split("#")[0]) .map(x => {
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Apr 22 19:12:32 GMT 2024 - 2.8K bytes - Viewed (0)