Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for value (0.21 sec)

  1. .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)
  2. .cm/plugins/filters/readField/index.js

     * @param {String} fieldName - The name of the field for the group to return
     * @returns String - The specified value
     * @example {{ files | byPlatform | categorize(branch.diff.files_metadata) | readField('jvm', 'name') }}
     */
    
    function readField(objects, objectName, fieldName) {
        let group = Object.values(objects).find(s => s.name === objectName);
        if (group) {
            const result = group[fieldName];
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1K bytes
    - Viewed (0)
  3. .cm/plugins/filters/byCodeowner/ignore/index.js

    /* istanbul ignore else */
    if (typeof Symbol !== 'undefined') {
        TMP_KEY_IGNORE = Symbol.for('node-ignore')
    }
    const KEY_IGNORE = TMP_KEY_IGNORE
    
    const define = (object, key, value) =>
        Object.defineProperty(object, key, {value})
    
    const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g
    
    const RETURN_FALSE = () => false
    
    // Sanitize the range of a regular expression
    // The cases are complicated, see test cases for details
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top